Why does node adapter throw errors for env. vars not in predefined list? #10877
Replies: 1 comment
-
Got an answer #10878 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd really like to remove this error, or at least add a configuration so that it won't throw an error. I couldn't find any past discussion or remarks on why it throws this error or behaves this way.
https://github.com/sveltejs/kit/blob/master/packages/adapter-node/src/env.js#L15-L26
For context, we use a pnpm monorepo and use sveltekit for all of our UIs. We use the node adapter for all of them. We use one
.env
file and have started to simplify our environment variables. We were just doing a "translation", of sorts, in our docker compose/stack files, mapping the environment variable in the.env
to the application environment. Example:We are starting to get away from this "mapping/translation" as it's causing a bit of confusion for the team, and maintaining this is becoming a problem.
I'd like to remove this error being thrown, or configure the node adapter to optionally not throw an error.
Beta Was this translation helpful? Give feedback.
All reactions