fix: Simplify serve command - remove broken config

- Removed inline JSON config (not working with npx serve)
- Using simple flags: -l 80 --no-clipboard --single
- --single serves index.html for all routes (SPA fallback)
- Fixes 'Could not read configuration' error
This commit is contained in:
Kunthawat
2026-03-11 14:56:12 +07:00
parent 4cda5ecf98
commit 55ff6addcb

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
# Use serve to host static files on port 80
CMD ["npx", "serve", "dist", "-l", "80", "--config", "{\"directoryListing\": false, \"headers\": [{\"source\": \"**\", \"headers\": [{\"key\": \"Cache-Control\", \"value\": \"public, max-age=31536000, immutable\"}]}]}"]
# Serve static files on port 80 (simple, no config issues)
CMD ["npx", "serve", "dist", "-l", "80", "--no-clipboard", "--single"]