update url & fix build issue
This commit is contained in:
parent
074d9728ea
commit
c2e27c4b34
|
|
@ -1,3 +1,3 @@
|
|||
# 生产环境配置
|
||||
NODE_ENV=production
|
||||
VITE_API_BASE_URL=
|
||||
VITE_API_BASE_URL=/api
|
||||
|
|
@ -24,5 +24,6 @@
|
|||
"typescript": "~5.9.3",
|
||||
"vite": "^7.2.2",
|
||||
"vue-tsc": "^3.1.3"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@10.15.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
|
|
|
|||
|
|
@ -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': '*',
|
||||
|
|
|
|||
Loading…
Reference in New Issue