Closed dammy001 closed 4 months ago
afaik NUXT_FOO
isn't populated on client but you need to do NUXT_PUBLIC_FOO
, hence the pre-configured client prefix of NUXT_PUBLIC_
.
@juliusmarminge What if I don't want to add PUBLIC_
? I just need NUXT_
. This option clientPrefix
should be exposed on userland.
I dont think you understand what clientPrefix means. It's the thing you prefix your variabler with if you want the value sent to client. NUXT_ doesnt do that, NUXTPUBLIC does.
@juliusmarminge Currently, without using t3-env
my environment variables are prefixed with NUXT_
without adding PUBLIC_
, and it works fine, but adding this package will result in me changing my environment variables, which I really don't want to do.
@juliusmarminge i get your point now
Currently, without using t3-env my environment variables are prefixed with NUXT without adding PUBLIC, and it works fine
Then those should go in the server object
This always make use of the default
NUXT_PUBLIC_