Isolate next dev from production .next, add build-guard/atomic deploy/health watchdog, error boundaries, and fix JWT startup, meetup leaks, media path traversal, SVG/memory uploads, and JSON-LD escaping. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
660 B
Plaintext
16 lines
660 B
Plaintext
# Drop-in override for bbe-frontend.service.
|
|
#
|
|
# Refuses to (re)start the frontend when the .next production build is missing or
|
|
# has been contaminated by a `next dev` run, so we fail loudly at boot instead of
|
|
# silently serving 500s on every request-time route (e.g. /events).
|
|
#
|
|
# Install:
|
|
# sudo mkdir -p /etc/systemd/system/bbe-frontend.service.d
|
|
# sudo cp ops/systemd/bbe-frontend.service.d/verify-build.conf \
|
|
# /etc/systemd/system/bbe-frontend.service.d/verify-build.conf
|
|
# sudo systemctl daemon-reload
|
|
# sudo systemctl restart bbe-frontend
|
|
|
|
[Service]
|
|
ExecStartPre=/home/bbe/BelgianBitcoinEmbassy/frontend/scripts/verify-prod-build.sh
|