From a6bc8f291ce8f5878192fdf4e18ecb9883abbb2a Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Tue, 3 Mar 2026 10:43:37 +0700 Subject: [PATCH] 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 --- vite.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 vite.config.js diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 000000000..669c19df3 --- /dev/null +++ b/vite.config.js @@ -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 + } +});