fix: use allowedHosts=true (boolean), disable open in container

This commit is contained in:
Kunthawat Greethong
2026-06-17 11:57:24 +07:00
parent 26cdd14881
commit cbe861ff27

View File

@@ -13,10 +13,9 @@ export default defineConfig({
},
server: {
port: 3000,
open: true,
allowedHosts: process.env.VITE_ALLOWED_HOSTS
? process.env.VITE_ALLOWED_HOSTS.split(',')
: 'all',
host: '0.0.0.0',
open: false,
allowedHosts: true,
proxy: {
'/api': {
target: 'http://localhost:5001',