From 70c0d9788fd5180f55c04c40628a11ae5d05362b Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Tue, 3 Mar 2026 10:43:48 +0700 Subject: [PATCH] fix: Add server config to astro.config.mjs as well --- astro.config.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 508cbeceb..61e6ac01a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,6 +6,12 @@ import tailwindcss from '@tailwindcss/vite'; // https://astro.build/config export default defineConfig({ vite: { - plugins: [tailwindcss()] + plugins: [tailwindcss()], + server: { + allowedHosts: true // Allow all hosts for development + }, + preview: { + allowedHosts: true // Allow all hosts for production preview + } } -}); \ No newline at end of file +});