Closed evgenii-code closed 3 weeks ago
Create plugin and call useRuntimeConfig composable.
useRuntimeConfig
// /plugins/test.ts export default defineNuxtPlugin(() => { const $config = useRuntimeConfig(); console.log('$config', $config); });
https://stackblitz.com/edit/nuxt-bridge-starter?file=plugins%2Ftest.ts
The return type of the useRuntimeConfig composable is NitroRuntimeConfig, but should be RuntimeConfig.
NitroRuntimeConfig
RuntimeConfig
I believe this is related to the known bug in Nuxt 3 https://github.com/nuxt/nuxt/pull/25440 https://github.com/nuxt/nuxt/issues/26028
No response
Environment
Reproduction
Create plugin and call
useRuntimeConfig
composable.https://stackblitz.com/edit/nuxt-bridge-starter?file=plugins%2Ftest.ts
Describe the bug
The return type of the
useRuntimeConfig
composable isNitroRuntimeConfig
, but should beRuntimeConfig
.I believe this is related to the known bug in Nuxt 3 https://github.com/nuxt/nuxt/pull/25440 https://github.com/nuxt/nuxt/issues/26028
Additional context
No response
Logs
No response