fix: Use Node adapter server instead of astro preview for production

This commit is contained in:
Kunthawat Greethong
2026-03-09 21:08:03 +07:00
parent 9fe23da5ce
commit d6aac2976b

View File

@@ -21,4 +21,4 @@ ENV NODE_ENV=production
ENV ASTRO_DB_REMOTE_URL=file:/app/data/consent.db ENV ASTRO_DB_REMOTE_URL=file:/app/data/consent.db
ENV ADMIN_PASSWORD=moreminimore2026!Secure ENV ADMIN_PASSWORD=moreminimore2026!Secure
CMD ["sh", "-c", "mkdir -p /app/data && npx astro preview --host 0.0.0.0 --port 80"] CMD ["node", "dist/server/entry.mjs"]