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 and pi0 committed Jan 16, 2023
1 parent 32d80ec commit b631d84
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 b631d84

Please sign in to comment.