Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uses: actions/checkout@v6

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v6
with:
package_json_file: website/package.json

Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ repos:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
exclude: ^.devcontainer/devcontainer.json
- id: pretty-format-json
Expand Down
16 changes: 2 additions & 14 deletions website/DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

The new `website/` directory is the docs and marketing site for Bub.

Legacy MkDocs source files may still exist in the repository during the
transition, but production deployment now targets the Astro site on
Cloudflare Workers.

## Cloudflare Workers

Connect the repository to a Cloudflare Worker using Git integration.
Expand All @@ -21,6 +17,8 @@ Recommended settings:
- Environment variable: `SITE_URL=https://bub.build`
- Node version: `24.21.0` (pinned in `website/.node-version`; remove any older
`NODE_VERSION` override, or set it to `24.21.0`)
- Package manager version: `12.11.2` (pinned as `packageManager` in
`website/package.json`, no other setting needed)
- Build secret: `GITHUB_TOKEN=<GitHub PAT>` (optional, recommended for higher GitHub API limits)

The repo keeps a minimal [wrangler.jsonc](./wrangler.jsonc) and relies on
Expand Down Expand Up @@ -50,9 +48,6 @@ SSR Worker build:
- `_worker.js`
- `_routes.json`

Production deployment is handled by Cloudflare Workers Git integration instead of
GitHub Actions.

## Current Repo State

The local developer entrypoints now target the new site:
Expand All @@ -70,10 +65,3 @@ The deployment split is intentionally simple:
- `main.yml` only verifies that the website builds
- `on-release-main.yml` only handles package release tasks
- Cloudflare Workers deploys the website from the connected repository

Required Cloudflare Workers project configuration:

- Git integration enabled for this repository
- Build command set to `pnpm install --frozen-lockfile && pnpm build`
- Deploy command set to `pnpm wrangler deploy`
- Working directory set to `website`
18 changes: 9 additions & 9 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "website",
"type": "module",
"version": "0.0.1",
"packageManager": "pnpm@10.34.6",
"packageManager": "pnpm@12.11.2",
"engines": {
"node": "^22.19.0 || >=24.0.0"
},
Expand All @@ -15,26 +15,26 @@
"preview": "wrangler dev"
},
"dependencies": {
"@astrojs/cloudflare": "^14.3.3",
"@astrojs/starlight": "^0.42.4",
"@astrojs/cloudflare": "^14.3.4",
"@astrojs/starlight": "^0.42.6",
"@astrojs/starlight-tailwind": "^5.0.0",
"@fontsource-variable/jetbrains-mono": "^5.3.0",
"@fontsource-variable/outfit": "^5.3.0",
"@fontsource/noto-sans-sc": "^5.3.0",
"@fontsource/noto-sans-sc": "^5.3.1",
"@fontsource/outfit": "^5.3.0",
"@tailwindcss/vite": "^4.3.3",
"astro": "^7.3.5",
"astro": "^7.3.8",
"astro-mermaid": "^2.1.0",
"clsx": "^2.1.1",
"mermaid": "^11.17.2",
"motion": "^13.4.5",
"satori": "^0.33.5",
"motion": "^14.1.0",
"satori": "^0.47.1",
"sharp": "^0.35.5",
"tailwind-merge": "^3.7.0"
},
"devDependencies": {
"@lucide/astro": "^1.48.0",
"@lucide/astro": "^1.55.0",
"tailwindcss": "^4.3.3",
"wrangler": "^4.143.0"
"wrangler": "^4.149.0"
}
}
Loading
Loading