diff --git a/docs/content/migration/8.runtime-config.md b/docs/content/migration/8.runtime-config.md index 1ff3f07ab8..8a1c89dc66 100644 --- a/docs/content/migration/8.runtime-config.md +++ b/docs/content/migration/8.runtime-config.md @@ -43,6 +43,8 @@ export default defineNuxtConfig({ ```ts [server/api/hello.ts] import { useRuntimeConfig } from '#nitro'; +const config = useRuntimeConfig() + export default (req, res) => { // you can now access config.BASE_URL return {