- 01
Built success_url from process.env.NEXT_PUBLIC_SITE_URL, which is only set locally
Invalid URL: An explicit scheme (such as https) must be provided.
- 02
Switched to process.env.VERCEL_URL
Same error: VERCEL_URL is a host without a scheme
- 03
Hardcoded the production domain
Preview deployments now redirect customers to production after paying. Sent a mayday