scripts/run-newsletter-server.sh
#!/bin/sh # Production server wrapper (pm2-invoked). Injects George transport creds at # runtime, then starts Next on :3737. AUTH_SECRET must be present in .env — # the session module refuses the dev fallback in production. set -e cd "$(dirname "$0")/.." . scripts/george-env.sh export PATH="/opt/homebrew/bin:/usr/bin:/bin:$PATH" export NODE_ENV=production exec /opt/homebrew/bin/npx next start -p 3737