mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-23 23:39:47 +08:00
chore(projects): use json5 resolve env VITE_OTHER_SERVICE_BASE_URL
& fix proxy enable
This commit is contained in:
@ -9,6 +9,8 @@ export default defineConfig(configEnv => {
|
||||
|
||||
const buildTime = getBuildTime();
|
||||
|
||||
const enableProxy = configEnv.command === 'serve' && !configEnv.isPreview;
|
||||
|
||||
return {
|
||||
base: viteEnv.VITE_BASE_URL,
|
||||
resolve: {
|
||||
@ -32,7 +34,7 @@ export default defineConfig(configEnv => {
|
||||
host: '0.0.0.0',
|
||||
port: 9527,
|
||||
open: true,
|
||||
proxy: createViteProxy(viteEnv, configEnv.command === 'serve'),
|
||||
proxy: createViteProxy(viteEnv, enableProxy),
|
||||
fs: {
|
||||
cachedChecks: false
|
||||
}
|
||||
|
Reference in New Issue
Block a user