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
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:
@@ -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/)
|
||||
|
||||
Reference in New Issue
Block a user