修改模拟面试的相关内容
This commit is contained in:
@@ -13,14 +13,14 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
// Proxy API requests to the backend server
|
||||
'/api': {
|
||||
target: 'http://localhost:8080',
|
||||
changeOrigin: true, // Needed for virtual hosted sites
|
||||
secure: false, // Optional: if you are using https
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
},
|
||||
// proxy: {
|
||||
// // Proxy API requests to the backend server
|
||||
// '/api': {
|
||||
// target: 'http://localhost:8080',
|
||||
// changeOrigin: true, // Needed for virtual hosted sites
|
||||
// secure: false, // Optional: if you are using https
|
||||
// rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
// },
|
||||
// },
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user