Skip to content

Commit

Permalink
Merge pull request #4787 from remotion-dev/only-delete-site-if-possible
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger authored Jan 23, 2025
2 parents e823a16 + f64f14b commit 7c5ade2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/lambda/src/api/deploy-site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ const mandatoryDeploySite = async ({
),
]);

fs.rmSync(bundled, {
recursive: true,
});
if (fs.existsSync(bundled)) {
fs.rmSync(bundled, {
recursive: true,
});
}

return {
serveUrl: makeS3ServeUrl({bucketName, subFolder, region}),
Expand Down

0 comments on commit 7c5ade2

Please sign in to comment.