Ability to pass {{domain}} to env variables #2479
Replies: 1 comment
-
There are a few predefined env variables, that you can pass to during build and runtime. Here you can read more. Let me know if this does not solve your issue (and reopen this discussion). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the preview deployment tab a number of URL templates can be set. I'd like to have the ability to pass down the domain as an environment variable.
Reason:
Next-Auth for instance requires a NEXT_AUTH_URL to be set. This value will redirect users after OAuth to the domain. When deploying a preview environment this won't work, because it would redirect to whatever value is set in the env vars. Passing the {{domain}} to an environment variable would resolve this issue without having to use any proxy auth server.
Beta Was this translation helpful? Give feedback.
All reactions