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:
@@ -41,5 +41,5 @@ ENV ASTRO_DB_REMOTE_URL=file:/app/data/consent.db
|
|||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
ENV PORT=80
|
ENV PORT=80
|
||||||
|
|
||||||
# Use serve to host static files on port 80
|
# Serve static files on port 80 (simple, no config issues)
|
||||||
CMD ["npx", "serve", "dist", "-l", "80", "--config", "{\"directoryListing\": false, \"headers\": [{\"source\": \"**\", \"headers\": [{\"key\": \"Cache-Control\", \"value\": \"public, max-age=31536000, immutable\"}]}]}"]
|
CMD ["npx", "serve", "dist", "-l", "80", "--no-clipboard", "--single"]
|
||||||
|
|||||||
Reference in New Issue
Block a user