Svelte client-side environment variables

Hi, @bellangerq, are you wanting to use the environment variable in a Function or in the javascript running in the end user’s browser?

There is more information about the latter here:

The environment variable only exists in the build system at Netlify. Unless you have taken steps to embed that environment variable somewhere in the static files for the site deploy (for example as a literal string somewhere in a javascript, HTML, CSS, JSON or other file), it won’t be present for the deployed site.

If this issue is client side javascript missing the environment variable, the “common issue” topic above should have answers. If there are still questions after reading that, please let us know.

If this is a Function not having the environment variable, please let us know which function this is happening for.