-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't workingtaskstriage:pendingThis issue needs to be triagedThis issue needs to be triaged
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.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
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)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtaskstriage:pendingThis issue needs to be triagedThis issue needs to be triaged
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
MaxSchaefer commentedon Apr 3, 2024
@JaninaWibker wanna take a look at this? Can Next.js 14 help us with runtime envs?