Dilly
Dilly
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
Thanks. It's been a little while since I worked with runtimeConfig. I totally forgot there was a public property which was my main issue.
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
I see. I can't destructure the public ones
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
useRuntimeConfig() doens't work for public runtime config?
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
Ok so why does this work:
{{ $config.public.myValue }}
{{ $config.public.myValue }}
But this doesn't
const { myValue } = useRuntimeConfig()
const { myValue } = useRuntimeConfig()
{{ myValue }}
{{ myValue }}
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
Appreciate the help
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
Ok I don't understand but I'll continue to read docs and this vid and hopefully it will click
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
runtimeConfig: { supabaseUrl: process.env.NUXT_PUBLIC_SUPABASE_URL, supabaseKey: process.env.NUXT_PUBLIC_SUPABASE_KEY, appUrl: process.env.NUXT_PUBLIC_APP_URL, loginDomains: process.env.NUXT_PUBLIC_LOGIN_DOMAINS, },
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
?
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
Hmm.. this works:
<div>{{ loginDomains }}</div>
<div>{{ loginDomains }}</div>
This doesn't:
<q-page>{{ loginDomains }}</q-page>
<q-page>{{ loginDomains }}</q-page>
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
browser.mjs?v=30320596:44 warn [Vue warn]: Hydration text mismatch in <main class=​"q-page q-layout-padding column items-center flex-center" style=​"min-height:​ 1313px;​">​​</main>​flex
- rendered on server: "domain1.com,domain2.com"
- expected on client: ""
at <QPage padding="" class=
browser.mjs?v=30320596:44 warn [Vue warn]: Hydration text mismatch in <main class=​"q-page q-layout-padding column items-center flex-center" style=​"min-height:​ 1313px;​">​​</main>​flex
- rendered on server: "domain1.com,domain2.com"
- expected on client: ""
at <QPage padding="" class=
20 replies
NNuxt
Created by Dilly on 4/2/2024 in #❓・help
useRuntimeConfig() is returning undefined values
Something messing up on hydration?
20 replies