Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
refactor: use routeRules
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 17, 2022
1 parent 70e2e92 commit 95554ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/schema/src/config/nitro.ts
Expand Up @@ -13,7 +13,7 @@ export default defineUntypedSchema({
nitro: {
routes: {
$resolve: async (val, get) => ({
...await get('routes') || {},
...await get('routeRules') || {},
...val || {}
})
}
Expand All @@ -29,7 +29,7 @@ export default defineUntypedSchema({
* @type {typeof import('nitropack')['NitroConfig']['routes']}
* @version 3
*/
routes: {},
routeRules: {},

/**
* Nitro server handlers.
Expand Down

0 comments on commit 95554ca

Please sign in to comment.