From c48febe255b28e39a6a8ff6a275615decc5cd010 Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Wed, 11 Mar 2026 15:01:21 +0700 Subject: [PATCH] fix: Add --cors flag to serve for proper MIME types - Added --cors flag to serve command - Ensures CSS/JS files serve with correct MIME types - Fixes styling not loading issue --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6d5203a4..f7272fb29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,5 +41,5 @@ ENV ASTRO_DB_REMOTE_URL=file:/app/data/consent.db ENV HOST=0.0.0.0 ENV PORT=80 -# Serve static files on port 80 (simple, no config issues) -CMD ["npx", "serve", "dist", "-l", "80", "--no-clipboard", "--single"] +# Serve static files with proper MIME types +CMD ["npx", "serve", "dist", "-l", "80", "--no-clipboard", "--cors"]