-
drop all the files included (replacing
_with/) -
create three apps in github oauth settings:
Local DEV,Staging,Prod- https://github.com/settings/applications/new
- fillout the details: don't worry too much right now you can change all these later
name: ☝️home page: your url (http://localhost:3000,https://staging.your.doma.in,https://your.doma.in)description: whatever... but the user will see thisauthorization callback url: as above but with/api/callback: (http://localhost:3000/api/callback,https://staging.your.doma.in/api/callback,https://your.doma.in/api/callback)
- on the application detail page:
- generate a secret and store as
OAUTH_CLIENT_SECRET - grab the clientid and store as
OAUTH_CLIENT_ID
- generate a secret and store as
- On your deployment service provider
- store the clientid and clientsecret

- for vercel this is https://vercel.com/yourorg/yourproject/settings/environment-variables
- set the build command to
yarn build - set the start command to
yarn start
- store the clientid and clientsecret
👍