From f16e6bb423ecdf990359cc7c72ea4aefaaa95baa Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Thu, 12 Mar 2026 12:54:34 +0700 Subject: [PATCH] fix: Allow all hosts in Astro config - Set host: true for both server and preview - Fix 'Blocked request' error on Easypanel - Enable external hostname access --- astro.config.mjs | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 508cbeceb..1a3482473 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,11 +1,25 @@ // @ts-check import { defineConfig } from 'astro/config'; - import tailwindcss from '@tailwindcss/vite'; // https://astro.build/config export default defineConfig({ + output: 'hybrid', + adapter: undefined, + build: { + inlineStylesheets: 'always', + }, vite: { - plugins: [tailwindcss()] - } -}); \ No newline at end of file + plugins: [tailwindcss()], + preview: { + host: true, // Allow all hosts + port: 80, + strictPort: false, + }, + server: { + host: true, // Allow all hosts + port: 80, + strictPort: false, + }, + }, +});