#!/usr/bin/env sh set -eu if [ -f .env.production ]; then if grep -Eq 'replace-with|example\.internal' .env.production; then printf '%s\n' 'predeploy-check: placeholder values remain in .env.production' >&2 exit 1 fi else printf '%s\n' 'predeploy-check: .env.production is not present; provide the protected deployment secret file before release.' >&2 exit 1 fi npm test npm run build sh -n infra/backup-postgres.sh infra/restore-check.sh printf '%s\n' 'predeploy-check: static, test, build, and script gates passed'