We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d93427 commit 75bd8efCopy full SHA for 75bd8ef
example-widget-mui/vite.config.ts
@@ -19,9 +19,11 @@ import react from '@vitejs/plugin-react-swc';
19
import { Plugin, PluginOption, defineConfig } from 'vite';
20
21
const plugins: [Plugin | PluginOption] = [react()];
22
+let port = 5173;
23
24
if (process.env.VITE_DEV_SSL === 'true') {
25
plugins.push(basicSsl());
26
+ port = 5174;
27
}
28
29
// https://vitejs.dev/config/
@@ -50,6 +52,12 @@ export default defineConfig({
50
52
fs: {
51
53
allow: ['..'],
54
},
55
+ port,
56
+ strictPort: true,
57
+ },
58
+ preview: {
59
60
61
62
plugins,
63
// Use the env prefix from CRA for backward compatibility.
0 commit comments