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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user