samtgarson / nuxt-env

Inject env vars for your Nuxt app at runtime
170 stars 15 forks source link

Runtime environment variable not pass to Client #25

Open luaz opened 4 years ago

luaz commented 4 years ago

For build-time environment variables, it works perfectly with the variable accessible in both client and server (universal render mode).

For runtime environment variables, it is only accessible on the server but not on the client. Is this the expected behavior or there is a bug?

samtgarson commented 4 years ago

I'm not sure I understand your question, as this library is specifically to enable runtime environment variables. Variables are available client-side unless the secret option is enabled.

Could you post an example or make a recreation in codesanbdox of your exact issue?