feat: 更新 API 前缀配置,调整 Vite 代理设置以匹配新环境
This commit is contained in:
@@ -33,11 +33,12 @@ export default defineConfig(({ mode }) => {
|
||||
allowedHosts: ['.trycloudflare.com', '.loca.lt'],
|
||||
proxy: {
|
||||
[apiPrefix]: {
|
||||
target: 'http://localhost:8000',
|
||||
target: 'http://localhost:8030',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/app_03\/api/, '/api'),
|
||||
},
|
||||
[uploadsPrefix]: {
|
||||
target: 'http://localhost:8000',
|
||||
target: 'http://localhost:8030',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user