mirror of https://github.com/nuxt/nuxt.git
docs: pass `event` to `useRuntimeConfig` (#25788)
This commit is contained in:
parent
363bb57b63
commit
a6b3c512a3
|
@ -132,7 +132,7 @@ And then access the new CDN url using `config.app.cdnURL`.
|
|||
|
||||
```ts [server/api/foo.ts]
|
||||
export default defineEventHandler((event) => {
|
||||
const config = useRuntimeConfig()
|
||||
const config = useRuntimeConfig(event)
|
||||
|
||||
// Access cdnURL universally
|
||||
const cdnURL = config.app.cdnURL
|
||||
|
|
Loading…
Reference in New Issue