We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad6a5e commit 7177f75Copy full SHA for 7177f75
2 files changed
.changeset/eleven-wasps-teach.md
@@ -0,0 +1,5 @@
1
+---
2
+'astro': patch
3
4
+
5
+Ensure dotfiles are cleaned during static builds
packages/astro/src/core/build/static-build.ts
@@ -352,6 +352,8 @@ async function cleanServerOutput(opts: StaticBuildOptions) {
352
// The SSR output is all .mjs files, the client output is not.
353
const files = await glob('**/*.mjs', {
354
cwd: fileURLToPath(out),
355
+ // Important! Also cleanup dotfiles like `node_modules/.pnpm/**`
356
+ dot: true,
357
});
358
if (files.length) {
359
// Remove all the SSR generated .mjs files
0 commit comments