fix: Allow all hosts in preview mode for Easypanel

- Set preview.allowedHosts to true
- Allows Easypanel dynamic hostnames
- Safe because container is behind Easypanel proxy
- No need to hardcode specific domains
This commit is contained in:
Kunthawat Greethong
2026-03-03 10:43:37 +07:00
parent b9d053283f
commit a6bc8f291c

10
vite.config.js Normal file
View File

@@ -0,0 +1,10 @@
import { defineConfig } from 'astro/config';
export default defineConfig({
server: {
allowedHosts: true // Allow all hosts (safe behind Easypanel proxy)
},
preview: {
allowedHosts: true // Allow all hosts for production preview
}
});