Source code for the BitByBit (B3) website, built with Astro and deployed on Cloudflare Workers.
- Framework: Astro with server-side rendering
- Adapter: @astrojs/cloudflare (Cloudflare Workers)
- UI: React islands, Tailwind CSS, Radix UI
- Email: Cloudflare Email Workers + Resend
- Deploy: Cloudflare Workers via Wrangler
- Node.js v18+
- Wrangler CLI
-
Install dependencies:
npm install
-
Copy environment variables and fill in your values:
cp .dev.vars.example .dev.vars
-
Run the development server:
npm run dev
Open http://localhost:4321 in your browser.
| Command | Description |
|---|---|
npm run dev |
Start local dev server |
npm run build |
Build for production |
npm run preview |
Preview with Wrangler (Cloudflare Worker) |
npm run deploy |
Build and deploy to Cloudflare Workers |
npm run cf-typegen |
Generate Cloudflare environment types |
src/
├── components/ # Reusable Astro & React components
├── data/ # Static data files
├── layouts/ # Page layouts
├── lib/ # Utility functions
├── pages/ # File-based routes
│ └── api/ # API endpoints
├── styles/ # Global styles
└── types/ # TypeScript types
public/ # Static assets
archive/ # Archived features (careers section)