feat: reduce bundle size
release / build-web (push) Has been cancelled
release / build-bundles (aarch64-linux-gnu-gcc, arm64, linux, ubuntu-latest, linux-arm64) (push) Has been cancelled
release / build-bundles (amd64, darwin, macos-14, macos-x64) (push) Has been cancelled
release / build-bundles (amd64, linux, ubuntu-latest, linux-x64) (push) Has been cancelled
release / build-bundles (arm64, darwin, macos-14, macos-arm64) (push) Has been cancelled
release / build-bundles (x86_64-w64-mingw32-gcc, amd64, windows, ubuntu-latest, windows-x64) (push) Has been cancelled

This commit is contained in:
Carlos Florêncio
2026-02-16 13:32:35 +00:00
parent 11316eed0a
commit bd88ea29bb
+4
View File
@@ -44,6 +44,10 @@ if [ -d "$PNPM_HOISTED" ] && [ -d "$NEXT_MODULES" ]; then
fi
done
echo "Hoisted pnpm packages into web/node_modules/"
# Remove the .pnpm virtual store — everything needed is now in
# web/node_modules/ and the root node_modules/ is unreachable from
# the server. Removing it avoids 3-4x duplication in the archive.
rm -rf "$OUT_DIR/node_modules"
fi
# Static assets and public/ must be alongside server.js (inside web/)