Fix Vite config to listen on host 0.0.0.0 and port 8080 (resolve 502)
This commit is contained in:
parent
a1af488753
commit
dd52e94e94
1 changed files with 6 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
host: true,
|
||||||
|
port: 8080,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:8214',
|
target: 'http://localhost:8214',
|
||||||
|
|
@ -20,4 +22,8 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
preview: {
|
||||||
|
host: true,
|
||||||
|
port: 8080,
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue