3 env variables are missing from .env.example: NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY_LIVE, NEXT_PUBLIC_VERCEL_URL, STRIPE_SECRET_KEY_LIVE.
Why it works locally: Locally next dev reads your .env.local, which is never pushed. Vercel only has the variables you add under Project Settings, and NEXT_PUBLIC_ values are fixed at build time.
Show evidence (3)
↳ NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY_LIVE → missing from committed env template
↳ NEXT_PUBLIC_VERCEL_URL → missing from committed env template
↳ STRIPE_SECRET_KEY_LIVE → missing from committed env template
Suggested fix: Add empty lines to .env.example in the repository root: NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY_LIVE= + NEXT_PUBLIC_VERCEL_URL= + STRIPE_SECRET_KEY_LIVE=; push the file.
A 24-hour pass for public and private repository scans. Private code requires your GitHub authorization. One-time payment, no subscription, nothing renews.
One link follows the latest public scan of the default branch, with its date and commit. Views never start scans.
Open repo status →[](https://deploydoctor.nyttolabs.com/score/vercel/nextjs-subscription-payments)
Scan button for your README
For templates and starters. The link points at this repository, so someone who forks it changes the owner/repo in the link to scan their own copy before the first deploy.
[](https://deploydoctor.nyttolabs.com/vercel/nextjs-subscription-payments)