This document provides instructions for deploying the Awesome Agentic Patterns documentation site.
main is the canonical production branch. Pushes to main should be the normal release path.
git add .
git commit -m "Your changes"
git pushVercel will automatically build and deploy the site when the project is configured with main as the production branch.
- Bun installed (recommended) or Node.js 20+
- Git repository access
- For automatic deployment: Vercel account connected to your GitHub repository
- Install dependencies:
bun install
For local development and testing:
bun run dev # Serves at http://localhost:4321Changes are automatically reloaded. Press Ctrl+C to stop the server.
To build the site locally:
bun run build # Builds to apps/web/dist/Default workflow: merge to main, then push main:
git add .
git commit -m "Add new patterns"
git pushWhat happens automatically:
- Vercel Git deployment triggers on push to
main - Installs dependencies using bun
- Runs the configured build command from
vercel.json - Deploys the production build
- Site goes live at: https://agentic-patterns.com
Setup requirements:
- Connect your GitHub repository to Vercel
- Set the Vercel Production Branch to
main - Keep
vercel.jsonaligned with that branch policy
For manual deployment:
cd apps/web
bun run build
vercel deploy --prodIf the build process fails:
- Check that all pattern JSON files exist in
apps/web/public/patterns/ - Ensure all required dependencies are installed:
bun install - Verify Astro configuration is correct in
apps/web/astro.config.mjs
If bun run dev fails:
- Ensure dependencies are installed:
bun install - Check that port 4321 is available
- Try clearing the Astro cache:
rm -rf apps/web/.astro
If Vercel deployment fails:
- Check the Vercel deployment logs for specific errors
- Verify the build command and output directory settings
- Ensure all environment variables are configured (if any)
For the newsletter subscription feature to work, you need to configure the following environment variables in Vercel:
RESEND_API_KEY: Your Resend API key for newsletter subscriptions- Get your API key from: https://resend.com/api-keys
- Required for the newsletter subscription form to work
- The key must have Contacts access, not a send-only restriction
RESEND_SEGMENT_ID: Your Resend segment ID for newsletter subscriptions- Create or choose a segment in the Resend dashboard
- New and existing subscribers will be added to this segment when configured
- Go to your Vercel project dashboard
- Navigate to Settings → Environment Variables
- Add the variables:
- Name:
RESEND_API_KEY - Value:
re_xxxxxxxxxxxxx(your actual API key) - Environments: Production, Preview, Development (as needed)
- Name:
- Optional for segment enrollment:
- Name:
RESEND_SEGMENT_ID - Value:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - Environments: Production, Preview, Development (as needed)
- Name:
- Redeploy your application after adding environment variables
- Sign up at https://resend.com/signup
- Navigate to API Keys in the dashboard
- Click Create API Key
- Give it a name (e.g., "Agentic Patterns Website")
- Copy the API key and add it to your Vercel environment variables
The site is configured for the custom domain agentic-patterns.com:
- Configure in Vercel project settings under Domains
- Pattern files in
patterns/are the source of truth for all content - JSON files in
apps/web/public/patterns/are generated from pattern files - The
apps/web/dist/directory is generated and should not be manually edited - Use
bun run devfor local development with hot reload