fix: Configure Vite preview server allowedHosts

- Add easypanel.host to allowed hosts list
- Keep localhost and 127.0.0.1 for local dev
- Use specific domain instead of true for security
This commit is contained in:
Kunthawat
2026-03-10 19:17:42 +07:00
parent 5eb021e5d0
commit fbeba3096e

View File

@@ -7,10 +7,10 @@ import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
output: 'static',
vite: {
server: {
plugins: [tailwindcss()],
preview: {
host: '0.0.0.0',
allowedHosts: true,
allowedHosts: ['.easypanel.host', 'localhost', '127.0.0.1'],
},
plugins: [tailwindcss()]
},
});