fix: use allowedHosts=true (boolean), disable open in container
This commit is contained in:
@@ -13,10 +13,9 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
open: true,
|
host: '0.0.0.0',
|
||||||
allowedHosts: process.env.VITE_ALLOWED_HOSTS
|
open: false,
|
||||||
? process.env.VITE_ALLOWED_HOSTS.split(',')
|
allowedHosts: true,
|
||||||
: 'all',
|
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:5001',
|
target: 'http://localhost:5001',
|
||||||
|
|||||||
Reference in New Issue
Block a user