DEV Community


Discussion on: How Can I Access Environment Variables in My Static Website?

bobrown101 profile image
Brady Brown

If your api keys or env variables are sensitive, this is not acceptable, as the compiled code that will be sent to the client will include the api keys or env bars as plain text.

Underneath the hood, webpack or parcel is doing a simple text replace