-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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]: Predefined environment variables not passed to Nixpacks #2653
Comments
i thought i was going crazy |
Also facing this issue. The environment variable is getting set correctly in the container but |
Probably related to #2316 |
Still have the issue today on last beta |
I think that this is fixed (I'm on v4.0.0-beta.373) |
This issue should be resolved in the latest version. If you're still experiencing this issue, please reopen or create a new issue with updated details. |
I am still having this issue on 4.0.0-beta.373 Example environment variable (build variable checked, literal not checked):
In the "Final Nixpacks Plan"
Logged output during build:
For the record, the above is a test variable on a SvelteKit app. During the build, I call a console.table after parsing the environment variables with a schema library. |
Is there any workaround for this at the moment? |
still doesnt work on 4.0.0-beta.380 newest version to date
|
I think I saw a potential fix coming in 381. It's not released yet. I noticed it at about 0:04 on the video |
Nope, I tried 381 and even 382 and that didn't fix any issues, still ongoing |
Adding to this, it seems as if it is only limited to static pages, like using Vite, Svelte etc. One thing to note however, when I dump the envs in the terminal of the frontend in coolify, I do see the predefined variables, which is more how the backend deployment behaves. It's very strange behavior. |
Description
I pushed a PR to test predefined environment variables to a preview deployment on my Sveltekit app. The environment variables are being passed to Nixpacks as literal strings rather than being replaced with the predefined values.
I followed the instructions here: https://coolify.io/docs/knowledge-base/environment-variables
Minimal Reproduction (if possible, example repository)
Example variables:
Build variable
is checked.Is Literal?
is not checked.Exception or Error
The resulting
Final Nixpacks plan
looks like this:And the resulting environment variables look like this with
console.table
:Version
v4.0.0-beta.297
The text was updated successfully, but these errors were encountered: