From 74d7e5bee8b9a4f1eb259b083a28fa9b6ec2b361 Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Thu, 12 Mar 2026 13:35:46 +0700 Subject: [PATCH] fix: Remove preview/server config from Astro - Removed vite.preview/server config that was causing host blocks - Since we serve static files via 'serve' package, this config is unnecessary in production - Astro only builds static files and we serve them directly from dist/ folder - Eliminates 'Blocked request' error in production --- astro.config.mjs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index fe6d6d74f..919060435 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,17 +8,6 @@ export default defineConfig({ build: { inlineStylesheets: 'always', }, - vite: { - plugins: [tailwindcss()], - preview: { - host: true, // Allow all hosts (fix Easypanel access) - port: 80, - strictPort: false, - }, - server: { - host: true, // Allow all hosts - port: 80, - strictPort: false, - }, - }, + // Remove vite config - we only serve static files via serve package + // No preview/server config needed since using static file serving }); \ No newline at end of file