改后端端口
This commit is contained in:
@@ -25,11 +25,11 @@ export default defineConfig({
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:8080',
|
||||
target: process.env.BACKEND_URL || 'http://127.0.0.1:8021',
|
||||
changeOrigin: true
|
||||
},
|
||||
'/uploads': {
|
||||
target: 'http://127.0.0.1:8080',
|
||||
target: process.env.BACKEND_URL || 'http://127.0.0.1:8021',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user