-
Notifications
You must be signed in to change notification settings - Fork 197
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
[Bug] Invalid SERVER_URL
in the first few requests
#420
Comments
I can't seem to change the url at all, no matter what i set the env to it still loads as localhost which breaks when deployed somewhere else |
turns out, the app needs to be built with those env vars preset, can not be passed into the container |
@ernestii any updates on that? |
+1 |
This docker front-end is so easy to develop why doesn't anyone update it |
For anyone finding this issue. You can run on a different local port by providing the
Unsure if this is related to later fixes, it might not have worked before but it does work with v1.9.0 |
I'm running local HyperDX with the app and API ports mapped:
Despite the mapping, the first few requests are sent to the default API port
8000
which results in 404s or in CORS errors if another server is running on this port:It seems like
NEXT_PUBLIC_SERVER_URL
is empty during the first request and the hardcoded value is used instead:packages/app/src/config.ts
If I change the default URL, the first few requests go to that URL.
The text was updated successfully, but these errors were encountered: