Skip to content

Commit

Permalink
fix(build): do not override publicAssets (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Jan 9, 2023
1 parent d1b0cfb commit a3492b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export async function copyPublicAssets(nitro: Nitro) {
if (await isDirectory(asset.dir)) {
await fse.copy(
asset.dir,
join(nitro.options.output.publicDir, asset.baseURL!)
join(nitro.options.output.publicDir, asset.baseURL!),
{ overwrite: false }
);
}
}
Expand Down

0 comments on commit a3492b0

Please sign in to comment.