Open
Description
Some developers are currently running into the following errors in their local development environment.
-
NEXT_PUBLIC_OAUTH_REDIRECT_URI=http://localhost:3000/auth/callback
We can also try to move to a relative path instead of an absolute URL. - Introducing the possibility of runtime environment variables
All environment variables in https://github.com/helpwave/web/blob/main/tasks/utils/config.ts are set at build time. This is really inconvenient because we want to have some configuration options for staging and production.
Hello @MaxSchaefer. When running the project in my local and visiting the localhost url it is redirecting me to https://staging-tasks.helpwave.de/auth/callback?fake_token=eyJzdWIiOiIxODE1OTcxMy01ZDRlLT[…]NDc5ODQiLCJlbWFpbCI6InRlc3RpbmUudGVzdEBoZWxwd2F2ZS5kZSJ9
Am I missing anything?
You can set the environment variable (
/tasks/.env
)NEXT_PUBLIC_OAUTH_REDIRECT_URI
tohttp://localhost:3000/auth/callback
.
Originally posted by @MaxSchaefer in #203 (comment)