How to pass dynamic environment variables to SvelteKit run with Express? #13645
Unanswered
simonsarris
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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