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

Commit

Permalink
feat: share route options from newer nitro versions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 11, 2022
1 parent afe82e5 commit 3373ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/core/runtime/nitro/renderer.ts
Expand Up @@ -133,7 +133,7 @@ export default defineRenderHandler(async (event) => {
}

// TODO: share across endpoints on event context
const routeOptions = routerOptions.lookup(url) || {}
const routeOptions = event.context.routeOptions || routerOptions.lookup(url) || {}

// Initialize ssr context
const ssrContext: NuxtSSRContext = {
Expand Down

0 comments on commit 3373ba3

Please sign in to comment.