From 7972c271e12be10fb1122a08ccbd9476ecedb687 Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Thu, 12 Mar 2026 13:04:30 +0700 Subject: [PATCH] fix: Update config to Astro 5.0.x requirements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed output: 'hybrid' → output: 'static' (Astro 5.x) - Fixes 'Removed option' error in Docker build - Builds 15 pages successfully in 819ms - Maintains all PDPA features --- astro.config.mjs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 1a3482473..fe6d6d74f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,22 +4,21 @@ import tailwindcss from '@tailwindcss/vite'; // https://astro.build/config export default defineConfig({ - output: 'hybrid', - adapter: undefined, + output: 'static', // Changed from 'hybrid' (deprecated) build: { inlineStylesheets: 'always', }, vite: { plugins: [tailwindcss()], preview: { - host: true, // Allow all hosts + host: true, // Allow all hosts (fix Easypanel access) port: 80, strictPort: false, }, server: { - host: true, // Allow all hosts + host: true, // Allow all hosts port: 80, strictPort: false, }, }, -}); +}); \ No newline at end of file