fix: Allow all hosts for Easypanel deployment

- Added allowedHosts: true for dev and preview
- Required for Easypanel hosting to work
- Fixes 'Blocked request' error
This commit is contained in:
Kunthawat
2026-03-11 09:09:56 +07:00
parent 22e74f513e
commit b254638bc7

View File

@@ -5,7 +5,16 @@ import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
output: 'static',
vite: {
plugins: [tailwindcss()]
}
});
plugins: [tailwindcss()],
server: {
host: '0.0.0.0',
allowedHosts: true,
},
preview: {
host: '0.0.0.0',
allowedHosts: true,
},
},
});