Skip to content

Commit

Permalink
feat(render.yaml): add environment variables for NextAuth.js configur…
Browse files Browse the repository at this point in the history
…ation

Add NEXTAUTH_SECRET and NEXTAUTH_URL environment variables to the service configuration to allow for NextAuth.js configuration. NEXTAUTH_SECRET should be set to the secret key used by NextAuth.js, and NEXTAUTH_URL should be set to the external hostname of the Render instance.
  • Loading branch information
masterkain committed May 25, 2023
1 parent 14ccad6 commit d17e4a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ services:
fromDatabase:
name: airbroke-starter-db
property: connectionString

- key: NEXTAUTH_SECRET
value: your_nextauth_secret_here
- key: NEXTAUTH_URL
value: https://$RENDER_EXTERNAL_HOSTNAME
databases:
- name: airbroke-starter-db
plan: free

0 comments on commit d17e4a0

Please sign in to comment.