使用了AI重构项目,并完善了一部分后台问题
This commit is contained in:
+5
-3
@@ -1,6 +1,8 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
|
||||
const apiPort = process.env.API_PORT || '1551';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
css: {
|
||||
@@ -14,13 +16,13 @@ export default defineConfig({
|
||||
port: 1552,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:1551',
|
||||
target: `http://localhost:${apiPort}`,
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/uploads': {
|
||||
target: 'http://localhost:1551',
|
||||
target: `http://localhost:${apiPort}`,
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user