Skip to content

Commit 75bd8ef

Browse files
committed
Use fixed ports for the example widget
Signed-off-by: Michael Weimann <[email protected]>
1 parent 9d93427 commit 75bd8ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

example-widget-mui/vite.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ import react from '@vitejs/plugin-react-swc';
1919
import { Plugin, PluginOption, defineConfig } from 'vite';
2020

2121
const plugins: [Plugin | PluginOption] = [react()];
22+
let port = 5173;
2223

2324
if (process.env.VITE_DEV_SSL === 'true') {
2425
plugins.push(basicSsl());
26+
port = 5174;
2527
}
2628

2729
// https://vitejs.dev/config/
@@ -50,6 +52,12 @@ export default defineConfig({
5052
fs: {
5153
allow: ['..'],
5254
},
55+
port,
56+
strictPort: true,
57+
},
58+
preview: {
59+
port,
60+
strictPort: true,
5361
},
5462
plugins,
5563
// Use the env prefix from CRA for backward compatibility.

0 commit comments

Comments
 (0)