vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.
https://subscription-payments.vercel.app/
MIT License
5.79k stars 1.19k forks source link

Stripe link redirects to the wrong URL when returning from the "customer Portal" #277

Closed Zuuai closed 7 months ago

Zuuai commented 7 months ago

After opening the "customer portal"m the user is taken to Stripe billing page. The link on that page to return to the vercel app is incorrect. Seems to be redirecting to the deployment URL. Where can I change this?

Screenshot 2023-11-27 at 16 01 19 Screenshot 2023-11-27 at 15 59 32
Zuuai commented 7 months ago

SOLVED by adding another environment variable NEXT_PUBLIC_SITE_URL