nuxt-env icon indicating copy to clipboard operation
nuxt-env copied to clipboard

Runtime environment variable not pass to Client

Open luaz opened this issue 5 years ago • 1 comments

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?

luaz avatar Feb 16 '20 15:02 luaz

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?

samtgarson avatar Apr 16 '20 12:04 samtgarson