Search
Setup for Free
N
Nuxt
•
3y ago
Hermes Alves
May i access useRuntimeConfig from a composable.ts file?
const config = useRuntimeConfig();
const config = useRuntimeConfig();
I just to get the api url for use inside my composable
. This is not possible
?
config.public.apiBase
config.public.apiBase
Nuxt
Join
Nuxt Community Chat Server
31,874
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
const config = useRuntimeConfig();
const config = useRuntimeConfig();
config.public.apiBase
config.public.apiBase
Similar Threads
Can't access values from useRuntimeConfig() from /plugins
N
Nuxt / ❓・help
12mo ago
Access a .vue component props inside a module.ts file
N
Nuxt / ❓・help
13mo ago
cannot import 'useApollo' composable from another composable
N
Nuxt / ❓・help
9mo ago