wip: coding
This commit is contained in:
@@ -119,11 +119,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||
port: 4000,
|
||||
proxy: {
|
||||
// 选项写法
|
||||
// '/api': {
|
||||
// target: 'http://localhost:3000',
|
||||
// changeOrigin: true,
|
||||
// rewrite: path => path.replace(/^\/api/, '')
|
||||
// }
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:8000',
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/api/, '')
|
||||
}
|
||||
},
|
||||
hmr: {
|
||||
overlay: false
|
||||
|
||||
Reference in New Issue
Block a user