Environment Variables
There are two environment files for local development and production:
- 1..env.local
- 2..env.production
NEXT_PUBLIC_URL=https://localhost:3000
NEXT_PUBLIC_API=http://localhost:8080/api
NEXT_PUBLIC_URL points to your Gravity web client and is used to direct users to auth pages.
For example: when a user clicks on a signup button they will be directed to NEXT_PUBLIC_URL/signup
NEXT_PUBLIC_API points to your server API endpoint and is used for fetching a list of price plans.
Last modified 3mo ago