How to pass dynamic environment variables to SvelteKit run with Express? #13645
Unanswered
simonsarris
asked this question in
Q&A
Replies: 1 comment
-
You may need into your svelte.config.js to pass some additional information regarding your .env file : |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The adapter-node docs detail both how to pass environment variables, and how to use Express to handle a SvelteKit build, but suggest no way to do both these things together. Is there an easy way to do that?
Running an express server, the express script can see everything:
But in a given
server.ts
that express is serving, these won't work:Of course env/static would still work, since they're baked in at build time, but not dynamic.
Beta Was this translation helpful? Give feedback.
All reactions