Timo
Timo
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
😐
22 replies
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
same issue for cloudflare_pages preset
22 replies
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
in nitro
22 replies
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
i believe this is a bug
22 replies
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
same issue when i am using .dev.vars and nitro-cloudflare-dev module in nuxt dev
22 replies
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
commands i am using: nuxt build --preset=cloudflare_module wrangler dev .output/server/index.mjs --assets .output/public/
22 replies
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
same issue with nitro 2.10.4
22 replies
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
@kapa.ai i am already explicitly passing the event down to useRuntimeConfig
22 replies
NNuxt
Created by Timo on 1/18/2025 in #❓・help
useRuntimeConfig empty in wrangler local preview
@kapa.ai the runtimeConfig is working fine in nuxt's dev mode and i simply copied over .env to .dev.vars - there are no issues with my nuxt config and the secret naming.
22 replies
NNuxt
Created by imzol on 7/15/2024 in #❓・help
UseState with a state coming from a db
at least in the docs it says
key: a unique key to ensure that data fetching can be properly de-duplicated across requests, if not provided, it will be automatically generated based on URL and fetch options
10 replies
NNuxt
Created by imzol on 7/15/2024 in #❓・help
UseState with a state coming from a db
if you simply want to display the players of the db try
export const useRetrievePlayers = () => useFetch('/api/baseball/retrieve-players', {
default: () => []
});
export const useRetrievePlayers = () => useFetch('/api/baseball/retrieve-players', {
default: () => []
});
and in your component
const { data: players } = useRetrievePlayers();

// use reactive players
const { data: players } = useRetrievePlayers();

// use reactive players
this approach does not use global state but it seems like it suits your needs. useFetch deduplicates the requests automatically, so on page load all components will trigger only one request. more here
10 replies
NNuxt
Created by Timo on 5/29/2024 in #❓・help
How to enable SPA mode
Thank you! Can't wait to watch your video to get a better understanding of it 😄
6 replies