Replies: 1 comment 4 replies
-
If you're using Vite, you can inject env vars as described here: https://vitejs.dev/guide/env-and-mode |
Beta Was this translation helpful? Give feedback.
4 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.
-
The Environment Variables doc describes how env vars are meant for runtime, and contrasts this with "build arguments".
I'm totally onboard with this, but as far as I can tell "build arguments" aren't a thing in remix. Is there a way I can define a variable to be consumed at build time? I'm looking for something analogous to REACT_APP_ variables, whether expressed via env vars or via some other mechanism.
Beta Was this translation helpful? Give feedback.
All reactions