Skip to content

Commit

Permalink
Revert "fix custom assetFileNames issue (#12449)" (#12746)
Browse files Browse the repository at this point in the history
* Revert "fix custom `assetFileNames` issue (#12449)"

This reverts commit e6b8017.

This change caused source maps to be left in the client folder, exposing them into the server.

* Add changeset
  • Loading branch information
matthewp committed Dec 16, 2024
1 parent ba4aac1 commit 11c52c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/loud-emus-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Remove all assets created from the server build
1 change: 0 additions & 1 deletion packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ export async function staticBuild(
settings.timer.start('Server generate');
await generatePages(opts, internals);
await cleanStaticOutput(opts, internals);
opts.logger.info(null, `\n${bgMagenta(black(' finalizing server assets '))}\n`);
await ssrMoveAssets(opts);
settings.timer.end('Server generate');
}
Expand Down

0 comments on commit 11c52c0

Please sign in to comment.