diff --git a/packages/client/src/setupUpdateHead.ts b/packages/client/src/setupUpdateHead.ts index d3f61e414b..2ad189ae52 100644 --- a/packages/client/src/setupUpdateHead.ts +++ b/packages/client/src/setupUpdateHead.ts @@ -81,7 +81,7 @@ export const setupUpdateHead = (): void => { // ssr-only, extract page meta info to ssrContext if (__VUEPRESS_SSR__) { - const ssrContext: VuepressSSRContext | undefined = useSSRContext() + const ssrContext = useSSRContext() if (ssrContext) { ssrContext.head = head.value ssrContext.lang = lang.value