Skip to content

Commit 8701991

Browse files
committed
chore: assert event exists
1 parent e256db9 commit 8701991

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/utils/prerender.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function prerenderStaticImages (src = '', srcset = '') {
1414
}
1515

1616
appendHeader(
17-
useRequestEvent(),
17+
useRequestEvent()!,
1818
'x-nitro-prerender',
1919
paths.map(p => encodeURIComponent(p)).join(', ')
2020
)

0 commit comments

Comments
 (0)