提交 910f91ff authored 作者: 王鹏飞's avatar 王鹏飞

chore: update dependencies and change API target in Vite config

- Updated @vitejs/plugin-react-swc to version 4.2.3 - Updated vite to version 7.3.1 - Updated vite-plugin-mkcert to version 1.17.10 - Changed API target in vite.config.js from localhost to production URL
上级 72fa293d
差异被折叠。
...@@ -54,13 +54,13 @@ ...@@ -54,13 +54,13 @@
"devDependencies": { "devDependencies": {
"@types/react": "^18.3.7", "@types/react": "^18.3.7",
"@types/react-dom": "^18.3.0", "@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0", "@vitejs/plugin-react-swc": "^4.2.3",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-plugin-react": "^7.35.2", "eslint-plugin-react": "^7.35.2",
"eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-react-hooks": "^4.6.2",
"less": "^4.2.0", "less": "^4.2.0",
"vite": "^5.4.6", "vite": "^7.3.1",
"vite-plugin-mkcert": "^1.17.6" "vite-plugin-mkcert": "^1.17.10"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",
......
...@@ -38,8 +38,8 @@ export default defineConfig(() => { ...@@ -38,8 +38,8 @@ export default defineConfig(() => {
// rewrite: (path) => path.replace(/^\/api\/wenku/, '/'), // rewrite: (path) => path.replace(/^\/api\/wenku/, '/'),
// }, // },
'/api': { '/api': {
// target: 'https://zijingebook.ezijing.com', target: 'https://zijingebook.ezijing.com',
target: 'http://localhost:7419', // target: 'http://localhost:7419',
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论