From c2e27c4b34c19bad8d9c289e0066f015e463b148 Mon Sep 17 00:00:00 2001 From: weichengwu Date: Sun, 16 Nov 2025 20:01:15 +0800 Subject: [PATCH] update url & fix build issue --- .env.production | 2 +- package.json | 3 ++- tsconfig.app.json | 4 ++-- tsconfig.node.json | 4 ++-- vite.config.ts | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.env.production b/.env.production index 660d973..21d8e60 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ # 生产环境配置 NODE_ENV=production -VITE_API_BASE_URL= \ No newline at end of file +VITE_API_BASE_URL=/api \ No newline at end of file diff --git a/package.json b/package.json index 8b7ef5e..507f108 100644 --- a/package.json +++ b/package.json @@ -24,5 +24,6 @@ "typescript": "~5.9.3", "vite": "^7.2.2", "vue-tsc": "^3.1.3" - } + }, + "packageManager": "pnpm@10.15.1" } diff --git a/tsconfig.app.json b/tsconfig.app.json index d2da640..e1fd73f 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -10,8 +10,8 @@ /* Linting */ "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true diff --git a/tsconfig.node.json b/tsconfig.node.json index 8a67f62..cd830ce 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -16,8 +16,8 @@ /* Linting */ "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true diff --git a/vite.config.ts b/vite.config.ts index 6e345c7..f896630 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,9 +14,9 @@ export default defineConfig({ host: '0.0.0.0', proxy: { '/api': { - target: 'http://101.35.149.39:8200', + target: 'https://fucai-claim.smartjinrui.cn/api/', changeOrigin: true, - rewrite: (path) => path.replace(/^\/api/, ''), + rewrite: (path) => path.replace(/^\/api/, '/'), secure: false, headers: { 'Access-Control-Allow-Origin': '*',