Skip to content

Commit d2b9d29

Browse files
yyx990803claude
andcommitted
fix: send full asset manifest during preflight deploys
When preflight was used, the API merged the entire previous deployment's asset manifest to fill in skipped assets. This caused stale entries from old builds (renamed/deleted hashed files) to accumulate in the serving manifest and DB, growing forever across deploys. Now the CLI sends the full asset manifest as a FormData field alongside the changed files. The API uses this as the authoritative path list instead of blindly merging from the previous deployment. Falls back to old behavior for older CLIs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b29f906 commit d2b9d29

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/void/src/cli/deploy.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ async function runStaticDeploy(
291291
headerRules,
292292
redirectRules,
293293
);
294+
if (neededSet) formData.append("assetManifest", JSON.stringify(assetManifest));
294295
formData.append("source", getTokenSource());
295296
if (commit) formData.append("commit", commit);
296297

@@ -551,6 +552,7 @@ async function runFrameworkDeploy(
551552
redirectRules,
552553
dialect,
553554
});
555+
if (neededSet) formData.append("assetManifest", JSON.stringify(assetManifest));
554556
formData.append("source", getTokenSource());
555557
if (commit) formData.append("commit", commit);
556558

@@ -877,6 +879,7 @@ async function runFullDeploy(
877879
redirectRules,
878880
dialect,
879881
);
882+
if (neededSet) formData.append("assetManifest", JSON.stringify(assetManifest));
880883
formData.append("source", getTokenSource());
881884
if (commit) formData.append("commit", commit);
882885

0 commit comments

Comments
 (0)