Skip to content

Commit

Permalink
fix: type matched route rule return
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored and HigherOrderLogic committed Mar 16, 2024
1 parent 0a57fe1 commit dd95d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/composables/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function getRouteRules (url: string) {
const _routeRulesMatcher = toRouteMatcher(
createRadixRouter({ routes: useRuntimeConfig().nitro!.routeRules })
)
return defu({}, ..._routeRulesMatcher.matchAll(url).reverse())
return defu({} as Record<string, any>, ..._routeRulesMatcher.matchAll(url).reverse())
}
await getAppManifest()
return defu({} as Record<string, any>, ...matcher.matchAll(url).reverse())
Expand Down

0 comments on commit dd95d76

Please sign in to comment.