From 6f8e7a8ac7f0c0ef36348d7a63b010937bf78bc8 Mon Sep 17 00:00:00 2001 From: Manash Sonowal Date: Thu, 7 Apr 2022 19:17:15 +0530 Subject: [PATCH] docs: update runtime config migration (#4165) --- docs/content/migration/8.runtime-config.md | 2 ++ 1 file changed, 2 insertions(+) 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 {