From fbeba3096e88f8bcb38c8bfc73041889ce0b8526 Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Tue, 10 Mar 2026 19:17:42 +0700 Subject: [PATCH] fix: Configure Vite preview server allowedHosts - Add easypanel.host to allowed hosts list - Keep localhost and 127.0.0.1 for local dev - Use specific domain instead of true for security --- astro.config.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index df372c076..3257aa754 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -7,10 +7,10 @@ import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ output: 'static', vite: { - server: { + plugins: [tailwindcss()], + preview: { host: '0.0.0.0', - allowedHosts: true, + allowedHosts: ['.easypanel.host', 'localhost', '127.0.0.1'], }, - plugins: [tailwindcss()] }, }); \ No newline at end of file