mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-13 04:03:42 +08:00
feat(projects): add port env variables
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user