# 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
