Skip to content

Commit

Permalink
Remove temp file if success
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo committed May 16, 2024
1 parent 6296b3f commit 8d27751
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/front/prerender/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const prerender = async (
process.exit(1)
} else {
await mfs.copyDir(outDirStaticTemp, outDirStatic, { force: true })
await mfs.removeDir(outDirStaticTemp)
console.log(chalk.green("Copy _temp files to static folder"))
}
}
Expand Down

0 comments on commit 8d27751

Please sign in to comment.