This is the source code for dgdgdgdg.com, a personal website built with Astro and Cloudflare Pages. It leverages the Notion API for content management, providing a dynamic and easily updatable site.
- Bun (latest version)
# Install dependencies
bun install
# Start development server
bun run devManaged via dotenvx.
# 1. Copy template
cp .env.example .env
# 2. Edit .env with real values
vi .env
# 3. Encrypt (generates .env.keys)
npx dotenvx encryptImportant
Set DOTENV_PRIVATE_KEY from .env.keys in your local environment or CI/CD secrets.
src/
├── components/ # Reusable UI components
├── layouts/ # Page layouts
├── lib/ # Utilities & Notion API client
├── pages/ # File-based routing
└── styles/ # Global styles (Sass)| Command | Description |
|---|---|
bun run dev |
Start development server |
bun run build |
Build for production |
bunx wrangler pages dev dist/ |
Preview build with Wrangler |
