web/.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
DEEPSEEK_API_KEY
secret
Required for the /api/cron routes (DeepSeek summarization + community agent).
GITHUB_TOKEN
secret
Optional — raises GitHub API rate limit from 60 to 5000 req/h. Use a fine-grained PAT scoped to public repos only.
GITHUB_REPO
Override which repo to mirror. Defaults to Hmbown/CodeWhale.
CRON_SECRET
secret
Optional — required to manually invoke /api/cron (cloudflare cron triggers don't need this; they set cf-cron).
DEEPSEEK_MODEL
Optional — defaults to deepseek-v4-flash.
DEEPSEEK_BASE_URL
MAINTAINER_TOKEN
secret
Admin panel auth. Set to a random secret; access /admin?token=<this-value>.
MAINTAINER_GITHUB_PAT
GitHub PAT for posting comments via /admin. Needs issues:write scope.
NEXT_PUBLIC_GITEE_ENABLED
Set to 1 once the Gitee mirror at gitee.com/Hmbown/... exists. Until then leave blank to hide Gitee links.
brew install flyctl && fly launch --from https://github.com/Hmbown/CodeWhale
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/Hmbown/CodeWhale
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/Hmbown/CodeWhale