feat(projects): add port env variables

This commit is contained in:
locdp
2024-08-24 20:26:54 +07:00
parent 3830ec7a69
commit 6f5ea74d7a
3 changed files with 13 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ export default defineConfig(configEnv => {
},
server: {
host: '0.0.0.0',
port: 9527,
port: viteEnv.VITE_SERVER_PORT || 9527,
open: true,
proxy: createViteProxy(viteEnv, enableProxy),
fs: {
@@ -40,7 +40,7 @@ export default defineConfig(configEnv => {
}
},
preview: {
port: 9725
port: viteEnv.VITE_PREVIEW_PORT || 9725
},
build: {
reportCompressedSize: false,