vercel / nextjs-subscription-payments

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

Clarified usage of NEXT_PUBLIC_URL #209

Closed chriscarrollsmith closed 1 year ago

chriscarrollsmith commented 1 year ago

Different values for localhost and Vercel production deployment

vercel[bot] commented 1 year ago

@chriscarrollsmith is attempting to deploy a commit to the Vercel Solutions Team on Vercel.

A member of the Team first needs to authorize it.

abwdev commented 1 year ago

Hi @thorwebdev thank you for your help. I found this doc clarified things and was able to correctly set the DEV site settings and pull to local machine for successful local testing: https://vercel.com/docs/concepts/projects/environment-variables#development-environment-variables

chriscarrollsmith commented 1 year ago

Thanks, @thorwebdev.

I corrected the instructions to clarify that this variable should only be set for the Production environment.

I also restored the "deploy" button, which it appears I accidentally deleted in my previous PR.