调整设计师前端开发代理配置
This commit is contained in:
@@ -40,7 +40,7 @@ export default defineConfig(({ mode }) => {
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
host: true,
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
'/admin/api': {
|
||||
target: proxyTarget,
|
||||
@@ -53,12 +53,7 @@ export default defineConfig(({ mode }) => {
|
||||
rewrite: path => proxyToCoreDirectly ? path.replace(/^\/api/, '') : path
|
||||
}
|
||||
},
|
||||
allowedHosts: [
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
'2666.online',
|
||||
'wcy111.top'
|
||||
]
|
||||
allowedHosts: true
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
|
||||
Reference in New Issue
Block a user