fix(git-sync): resolve PDF path from repo root, not from subPath
Build and Deploy Verso / deploy (push) Has been cancelled
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user