diff --git a/apps/admin/vite.config.ts b/apps/admin/vite.config.ts index 6887838..e926023 100644 --- a/apps/admin/vite.config.ts +++ b/apps/admin/vite.config.ts @@ -59,9 +59,9 @@ export default defineConfig({ // 生产由 API 单端口托管全部路径,短链 {BASE_URL}/t/xxx 天然可用;此处让本地行为对齐。 proxy: { '/api': { target: 'http://localhost:3000', changeOrigin: true, configure: onProxyError }, - '/uploads': { target: 'http://localhost:3000', changeOrigin: true }, - '^/t/.*': { target: 'http://localhost:3000', changeOrigin: true }, - '/trace': { target: 'http://localhost:5174', changeOrigin: true, ws: true }, + '/uploads': { target: 'http://localhost:3000', changeOrigin: true, configure: onProxyError }, + '^/t/.*': { target: 'http://localhost:3000', changeOrigin: true, configure: onProxyError }, + '/trace': { target: 'http://localhost:5174', changeOrigin: true, ws: true, configure: onProxyError }, }, }, build: {