debug resvg cli
Build & Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
svemagie
2026-03-31 21:05:26 +02:00
parent 9ce9f4aa09
commit fec9628c38
+2 -14
View File
@@ -75,22 +75,10 @@ function loadFonts() {
"node_modules",
"@fontsource",
"inter",
"files",
const result = spawnSync('resvg', ['-o', outPath, '-'], {
input: svg,
encoding: null,
timeout: 10000 // 10 seconds
});
"files"
);
return [
{
// Write SVG to temp file for manual debugging
const tmpSvgPath = outPath.replace(/\.png$/, '.svg');
try {
require('fs').writeFileSync(tmpSvgPath, svg);
console.error(`[og] SVG written to ${tmpSvgPath} for manual testing.`);
} catch (e) {
console.error(`[og] Failed to write SVG for debugging:`, e);
}
name: "Inter",
data: readFileSync(join(fontsDir, "inter-latin-400-normal.woff")),
weight: 400,