Skip to content

Commit

Permalink
fix: makes ssrContext keys optional
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyYolkin committed Dec 1, 2023
1 parent fb4552a commit 6adc98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bridge/src/runtime/composables/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export function useRequestHeaders (include?: any[]) {

export function useRequestEvent (nuxtApp: NuxtAppCompat = useNuxtApp()): H3Event {
if (nuxtApp.ssrContext?.event) { return nuxtApp.ssrContext.event }
return createEvent(nuxtApp.ssrContext.req, nuxtApp.ssrContext.res)
return createEvent(nuxtApp.ssrContext?.req, nuxtApp.ssrContext?.res)
}

0 comments on commit 6adc98a

Please sign in to comment.