Hi @jvorick,
Based on your usage, I’m not sure why you need an environment variable for this task. For context:
- You seem to be using the variable to link to a domain - so the value is anyways visible in the URL.
- It’s not hard to check the site’s JS bundle and get the variable from there.
In general, I don’t recommend trying extra to secure client-side variables, because they’re pretty easily exposed.
In any case, it appears you’re using Redwood JS and just like most other frameworks, they seem to have a special way to use the environment variables in the client-side code:
Are you sure you’re using it accordingly?