fix(git-sync): resolve PDF path from repo root, not from subPath
Build and Deploy Verso / deploy (push) Has been cancelled

pdfPath is now joined against tmpDir (repo root) instead of fileRoot
(subPath dir), so the PDF can be placed anywhere in the repo
independently of where the project files land.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude
2026-06-23 23:55:15 +00:00
parent 55ad9af7da
commit dbb519835a
@@ -137,7 +137,7 @@ async function pushToRemote(
pdfBuildId,
'output.pdf'
)
const pdfDest = join(fileRoot, pdfPath)
const pdfDest = join(tmpDir, pdfPath)
await mkdir(dirname(pdfDest), { recursive: true })
await pipeline(pdfStream, createWriteStream(pdfDest))
logger.debug({ projectId }, 'git sync: PDF included')