Commit 6b7eef03 authored by 王蔡翾's avatar 王蔡翾
Browse files

按照原型还原

parent 12121653
......@@ -9,6 +9,8 @@ export default defineConfig({
plugins: [inspectAttr(), react()],
server: {
port: 3000,
// 浏览器只请求同源 /api;部署时由反向代理保留相同路径与 Cookie。
proxy: { '/api': { target: process.env.API_PROXY_TARGET || 'http://127.0.0.1:8240', changeOrigin: false } },
},
resolve: {
alias: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment