The application is split into three components:
-
Frontend (Cloudflare Pages)
- URL: https://9313c63a.bolt-echo.pages.dev
- Hosts the static web application
- Built from:
build/clientdirectory - Status: Currently returning 404 (needs environment variables)
-
Main Worker (bolt-echo)
- Primary API endpoint
- Handles main application logic
- Communicates with Anthropic API
- Status: Active
-
Tail Worker (bolt-echo-tail)
- URL: https://bolt-echo-tail.echocog.workers.dev
- Handles streaming responses
- Works alongside the main worker
- Status: Active
- Users access the frontend through Cloudflare Pages
- Frontend makes API calls to the main Worker
- For streaming operations (like chat):
- Main worker initiates the request
- Tail worker handles the streaming response
- Frontend receives real-time updates
The following environment variables must be set in Cloudflare Pages:
-
ANTHROPIC_API_KEY- Required for API communication
- Must be a valid Anthropic API key
-
VITE_LOG_LEVEL- Controls application logging
- Recommended value:
debug
- Go to Cloudflare Dashboard
- Navigate to Pages > bolt-echo > Settings > Environment variables
- Add both required variables:
ANTHROPIC_API_KEY: Your Anthropic API key from https://console.anthropic.com/VITE_LOG_LEVEL: Set todebugfor development orinfofor production
- Trigger a new deployment
- Build command:
pnpm run build - Build output directory:
build/client - Node.js version: 20.15.1
- Package manager: pnpm@9.4.0
- Framework: Remix with Cloudflare Pages Functions
- Production: bolt.echocog.org
- Preview: staging.echocog.org