Skip to content

Function: fixViteSsgHtml()

ts
function fixViteSsgHtml(options): Promise<void>;

Defined in: packages/valaxy/node/build.ts:294

Fix corrupted HTML produced by vite-ssg's JSDOM serialization under memory pressure. JSDOM.serialize() can emit truncated trailing fragments (e.g. /html>, ml>, l>) when heap is constrained during high-concurrency renders.

Only needed for the legacy vite-ssg engine; the built-in Valaxy SSG engine uses pure string rendering and is not affected.

Parameters

options

ResolvedValaxyOptions

Returns

Promise<void>