Replies: 3 comments 2 replies
-
I'm not sure I follow step 2. It's uncommon in Next.js apps to use the same .env file for different apps (environments?). You can define two different values for two different projects in their respective .env file. 🤔 Could you clarify a bit more? |
Beta Was this translation helpful? Give feedback.
-
Doing this would be great for teams using monorepos. In our project we have two apps: one for admin users and another one for customers, they both are built with Next.js and they both use NextAuth. We would love to change |
Beta Was this translation helpful? Give feedback.
-
Hi @balazsorban44. What do you think about my use case here? Would appreciate some input, thanks |
Beta Was this translation helpful? Give feedback.
-
Description 📓
This feature would allow setting a custom name for the
NEXTAUTH_URL
variable. I need this feature because I use direnv to pass environment variables to my project with two different NextAuth-enabled apps.packages
dashboard
<-- NEXTAUTH_URL=http://localhost:3001/apiwebsite
<-- NEXTAUTH_URL=http://localhost:3000/apiI need to send the NEXTAUTH_URL variable to each project separately because the auth logic changes between them.
How to reproduce ☕️
NEXTAUTH_URL
Contributing 🙌🏽
Yes, I am willing to help implement this feature in a PR
Beta Was this translation helpful? Give feedback.
All reactions