Files
dealplustech/vite.config.js
Kunthawat Greethong a6bc8f291c 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
2026-03-03 10:43:37 +07:00

11 lines
253 B
JavaScript

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
}
});