From b254638bc71dda488011b1939f6076e3a13e68e1 Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Wed, 11 Mar 2026 09:09:56 +0700 Subject: [PATCH] fix: Allow all hosts for Easypanel deployment - Added allowedHosts: true for dev and preview - Required for Easypanel hosting to work - Fixes 'Blocked request' error --- astro.config.mjs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 508cbeceb..568c7f95f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,7 +5,16 @@ import tailwindcss from '@tailwindcss/vite'; // https://astro.build/config export default defineConfig({ + output: 'static', vite: { - plugins: [tailwindcss()] - } -}); \ No newline at end of file + plugins: [tailwindcss()], + server: { + host: '0.0.0.0', + allowedHosts: true, + }, + preview: { + host: '0.0.0.0', + allowedHosts: true, + }, + }, +});