放开店务前端开发访问地址
This commit is contained in:
@@ -17,7 +17,7 @@ export default defineConfig(({ mode }) => {
|
||||
},
|
||||
server: {
|
||||
port: 3001,
|
||||
host: true,
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
'/admin/api': {
|
||||
target: proxyTarget,
|
||||
@@ -30,7 +30,7 @@ export default defineConfig(({ mode }) => {
|
||||
rewrite: targetPath => proxyToCoreDirectly ? targetPath.replace(/^\/api/, '') : targetPath
|
||||
}
|
||||
},
|
||||
allowedHosts: ['localhost', '127.0.0.1', '2666.online', 'wcy111.top']
|
||||
allowedHosts: true
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user