Skip to content

Commit 085ddc8

Browse files
authored
fix: auto generated open graph image respect options (#2269)
1 parent 5637013 commit 085ddc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/slidev/node/commands/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ export async function build(
9494
height: Math.round(options.data.config.canvasWidth / options.data.config.aspectRatio),
9595
routerMode: options.data.config.routerMode,
9696
waitUntil: 'networkidle',
97-
timeout: 30000,
97+
timeout: args.timeout || 30000,
9898
perSlide: true,
9999
omitBackground: false,
100+
dark: args.dark,
100101
})
101102

102103
const tempFiles = await fs.readdir(tempDir)

0 commit comments

Comments
 (0)