-
Notifications
You must be signed in to change notification settings - Fork 6
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
Problems configuring API_URL in the docker image #35
Comments
I will fix that. |
this should be fixed in v0.1.0 |
I'm still encountering this problem with v0.1.1. In the browser's JS console.
From inside the blocky-frontend container:
|
I got the same problem too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I keep receiving the following error when I try to submit a lookup:
Error: API_URL is undefined. Please set it in .env file.
However, when I obtain a shell inside the container, I see that the API_URL environment variable is set:
I think the problem is that the API_URL is being read with
process.env.API_URL
when the bundle is being built, and the container is only serving up the already built bundle.I found some info on the vite website that might be related to this: https://vitejs.dev/guide/env-and-mode.html#production-replacement
It sounds like replacing all
process.env.API_URL
references withimport.meta.env.API_URL
might fix this.The text was updated successfully, but these errors were encountered: