diff --git a/packages/schema/src/config/nitro.ts b/packages/schema/src/config/nitro.ts index 0f310d88aa1..e6067d61cb0 100644 --- a/packages/schema/src/config/nitro.ts +++ b/packages/schema/src/config/nitro.ts @@ -13,7 +13,7 @@ export default defineUntypedSchema({ nitro: { routes: { $resolve: async (val, get) => ({ - ...await get('routes') || {}, + ...await get('routeRules') || {}, ...val || {} }) } @@ -29,7 +29,7 @@ export default defineUntypedSchema({ * @type {typeof import('nitropack')['NitroConfig']['routes']} * @version 3 */ - routes: {}, + routeRules: {}, /** * Nitro server handlers.