From e44404f8e37346f3fb5275f37c310c067905f015 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 17 Oct 2022 15:10:46 +0100 Subject: [PATCH] fix(schema): routeRules config (#8252) --- 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: {},