Skip to content

Commit d69f672

Browse files
committed
fix(vitesse): broken build
1 parent f1da0ba commit d69f672

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vite/src/vitesse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export function installSchemaOrg(ctx: ViteSSGContext, meta: MetaInput) {
88
const client = createSchemaOrg({
99
updateHead(fn) {
1010
ctx.head?.addHeadObjs(fn)
11-
ctx.head?.updateDOM()
11+
if (typeof document !== 'undefined')
12+
ctx.head?.updateDOM()
1213
},
1314
meta() {
1415
const inferredMeta: Record<string, any> = {}

0 commit comments

Comments
 (0)