The worker name in wrangler.toml is intentionally set to smartflow-tutor-api so local wrangler deploy updates the same production worker already routed at api.barakzai.cloud/*.
If the name differs, deploys will target another worker and production will continue serving old behavior.
npm installnpm testwrangler devwrangler secret put ADAPTER_TOKENwrangler deploy
- Workflow:
.github/workflows/deploy-worker.yml - Required repository secrets:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
- Trigger: push to
main(or manual run from Actions tab).