chore(vite): 开发服务器允许所有 Host 访问(allowedHosts: true)
This commit is contained in:
parent
1bae275cef
commit
f7dbc127cc
@ -20,6 +20,8 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
port: 5174,
|
port: 5174,
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
|
// 允许所有主机访问开发服务器(如 test.wms.com、局域网 IP 等)
|
||||||
|
allowedHosts: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/dev-api': {
|
'/dev-api': {
|
||||||
target: 'http://localhost:9528', // Assuming Vue 2 backend is running here, user can change
|
target: 'http://localhost:9528', // Assuming Vue 2 backend is running here, user can change
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user