Dilly
useRuntimeConfig() is returning undefined values
In my
.env
file I have something like this:
In my nuxt.config.ts
file I have this:
But when I try to access that value like this:
It just prints out undefined
.
Yet if I have this in my template code on that same page:
I can see the value show up when I reload the page and then immediately disappear. What the heck? It's like loginDomains does have the value but then it gets set to undefined without me doing anything?20 replies