Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WEB_UI_API_URL #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix WEB_UI_API_URL #241

wants to merge 1 commit into from

Conversation

lachlan2k
Copy link
Contributor

The current implementation for WEB_UI_API_URL doesn't work. This is because:

  • Environment variables in the frontend are added at buildtime, not runtime.
  • Environment variables aren't exported to the Next.js frontend, unless they start with NEXT_PUBLIC.

This PR fixes this issue by using Next.js runtime configuration instead.

@lachlan2k
Copy link
Contributor Author

Ah sorry, I only tested this in dev. Bear with me and I'll fix it for full builds soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant