From bb87e5743ca72b98396c79fa1680a7fadcc8d6e8 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 17 Oct 2022 15:06:48 +0100 Subject: [PATCH] =?UTF-8?q?fix(schema):=20routeRules=20config=20?= =?UTF-8?q?=F0=9F=99=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/schema/src/config/nitro.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/schema/src/config/nitro.ts b/packages/schema/src/config/nitro.ts index e6067d61cb0..4a008666b70 100644 --- a/packages/schema/src/config/nitro.ts +++ b/packages/schema/src/config/nitro.ts @@ -11,7 +11,7 @@ export default defineUntypedSchema({ * @version 3 */ nitro: { - routes: { + routeRules: { $resolve: async (val, get) => ({ ...await get('routeRules') || {}, ...val || {} @@ -26,7 +26,7 @@ export default defineUntypedSchema({ * * @see https://nitro.unjs.io/config/#routes * - * @type {typeof import('nitropack')['NitroConfig']['routes']} + * @type {typeof import('nitropack')['NitroConfig']['routeRules']} * @version 3 */ routeRules: {},