Mozart409 / blocky-frontend

A frontend for blocky
67 stars 6 forks source link

API_URL is undefined in docker #67

Open anarion80 opened 10 months ago

anarion80 commented 10 months ago

Just like #35 -> the issue still exists. Even though API_URL is defined and available, there is still Error: API_URL is undefined. Please set it in .env file. in console and the frontend doesn't really work.

dmfrey commented 5 months ago

Where should this .env file go?

I'm running this app from a helm chart and I'm loading it from a configmap to a file in the container. When I shell into the container it puts you in /srv and that's where I mounted it. Is that the correct location? Should it be in /app? Somewhere else?

ivvija commented 4 months ago

From what I found googling stuff like vite env: \ The environment variable stuff seems to be build time only, which makes sense since it compiles a SPA.

But I will not create custom builds just to configure a variable...