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
This commit is contained in:
Kunthawat committed 2026-03-11 15:01:21 +07:00
1 parent 55ff6addcb
commit c48febe255
1 file changed
+2 -2
+2 -2
View File
@@ -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"]