Skip to content

Commit

Permalink
chore: assert event exists
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 30, 2024
1 parent e256db9 commit 8701991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/utils/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function prerenderStaticImages (src = '', srcset = '') {
}

appendHeader(
useRequestEvent(),
useRequestEvent()!,
'x-nitro-prerender',
paths.map(p => encodeURIComponent(p)).join(', ')
)
Expand Down

0 comments on commit 8701991

Please sign in to comment.