fix(cli): expose render debug mode

Adds the render --debug CLI flag, forwards it through Docker/local render paths, and captures full producer debug artifacts from pipeline start.
This commit is contained in:
Miguel Ángel
2026-06-23 13:04:48 -04:00
committed by GitHub
parent 4961e4e477
commit 7133c396eb
5 changed files with 57 additions and 8 deletions
@@ -914,6 +914,14 @@ export async function executeRenderJob(
assertNotAborted();
assertConfiguredFfmpegBinariesExist();
if (!existsSync(workDir)) mkdirSync(workDir, { recursive: true });
if (job.config.debug) {
const logPath = join(workDir, "render.log");
restoreLogger = installDebugLogger(logPath, log);
log.info("[Render] Debug artifacts enabled", { workDir, logPath });
}
log.info("[Render] Pipeline started", {
platform: process.platform,
arch: process.arch,
@@ -939,13 +947,6 @@ export async function executeRenderJob(
requestedWorkers: job.config.workers ?? "auto",
});
if (!existsSync(workDir)) mkdirSync(workDir, { recursive: true });
if (job.config.debug) {
const logPath = join(workDir, "render.log");
restoreLogger = installDebugLogger(logPath, log);
}
const entryFile = job.config.entryFile || "index.html";
let htmlPath = join(projectDir, entryFile);
if (!existsSync(htmlPath)) {