Skip to content

Commit 891c54a

Browse files
thegdsksglinr
andcommitted
fix(docs): skip metadata verification in SSR mode
Co-Authored-By: Glinr <bot@glincker.com>
1 parent 46272a2 commit 891c54a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

apps/docs/scripts/verify-metadata.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ import path from 'node:path'
33

44
const outDir = path.resolve(process.cwd(), 'out')
55

6+
// Skip verification in SSR mode (no out/ directory)
7+
try {
8+
await readFile(path.join(outDir, 'index.html'), 'utf8')
9+
} catch {
10+
console.log('[docs-qa] SSR mode detected (no out/), skipping metadata verification.')
11+
process.exit(0)
12+
}
13+
614
const checks = [
715
{
816
file: 'index.html',

0 commit comments

Comments
 (0)