Environment Variables
That that we have our project cloned, and database set up, we need to set up our environment variables. To do this, we will need to create a.env
file in the root of our project.
Supabase
To retrieve the Supabase variables, we can run the following command in our terminal:Supabase must be running in order for this command to work.
.env
file:
Github OAuth
For local authentication we will be using GitHub. To set this up, we will need to create a GitHub OAuth app. Go to your GitHub settings and click on “Developer Settings” in the sidebar. Then click on “OAuth Apps” and “New OAuth App”. Fill out the form with the following information:- Application Name:
Development
- Homepage URL:
http://localhost:3000
- Authorization callback URL:
http://127.0.0.1:54321/auth/v1/callback
.env
file:
Resend
This is optional. If you do not need to send emails, you can skip this step.
.env
file:
Other
We will also need to add one other variables to our.env
file: