fix(www): remove the stale bun.lock that fails the Cloudflare Pages build (#456)

The site moved to pnpm in July 2025 and pnpm-lock.yaml is the lockfile
kept up to date, but www/bun.lock was left behind and still pins Astro 5.
The Cloudflare Pages build image now installs with bun when it finds a
bun.lock, and bun install --frozen-lockfile stops on the stale file, so
every docs build has failed since.

Remove it, ignore it in www so a local bun install cannot bring it back,
and point the site README and CLAUDE.md at pnpm.
This commit is contained in:
ARUNAVO RAY authored and GitHub committed 2026-09-26 09:10:03 +05:30
1 parent 1c1ff0b2fa
commit 34abda94fb
4 files changed
+14 -1047

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ dist/
# dependencies
node_modules/
# pnpm-lock.yaml is the lockfile. Cloudflare Pages installs with Bun when a
# bun.lock is present, and a stale one fails the build.
bun.lock
bun.lockb
# logs
npm-debug.log*
+6 -6
View File
@@ -11,18 +11,18 @@ This is the marketing website for Gitea Mirror, built with Astro and Tailwind CS
## Essential Commands
```bash
bun install # Install dependencies
bun run dev # Start development server (port 4321)
bun run build # Build for production
bun run preview # Preview production build
pnpm install # Install dependencies (pnpm-lock.yaml is the lockfile)
pnpm dev # Start development server (port 4321)
pnpm build # Build for production
pnpm preview # Preview production build
```
## Architecture & Key Concepts
### Technology Stack
- **Framework**: Astro (v5.0.5) - Static site generator with React integration
- **Framework**: Astro (v7) - Static site generator with React integration
- **UI**: React (v19.0.0) + Tailwind CSS v4
- **Runtime**: Bun
- **Package manager**: pnpm. Do not commit a bun.lock: Cloudflare Pages installs with Bun when it finds one
- **Styling**: Tailwind CSS v4 with Vite plugin
### Project Structure
+4 -4
View File
@@ -5,8 +5,8 @@ This Astro workspace powers the public marketing experience for Gitea Mirror. It
## Developing Locally
```bash
bun install
bun run dev
pnpm install
pnpm dev
```
The site is available at `http://localhost:4321`. Tailwind CSS v4 handles styling; classes can be used directly inside Astro, MDX, and React components.
@@ -23,8 +23,8 @@ The site is available at `http://localhost:4321`. Tailwind CSS v4 handles stylin
1. Add or update a record in `src/lib/use-cases.ts`. This keeps the landing page and library listing in sync.
2. Create a new MDX file in `src/pages/use-cases/<slug>.mdx` with the `UseCaseLayout` layout and descriptive frontmatter.
3. Run `bun run dev` to preview the layout and ensure the new guide inherits global styles.
3. Run `pnpm dev` to preview the layout and ensure the new guide inherits global styles.
## Deployment
The marketing site is built with the standard Astro pipeline. Use `bun run build` to generate a production build before deploying.
The marketing site is built with the standard Astro pipeline. Use `pnpm build` to generate a production build before deploying.
-1037
View File
File diff suppressed because it is too large. Load diff