Skip to content

feat: add Telegram-only deploy mode (DEPLOY_WEB=false)#21

Open
tobigs wants to merge 2 commits intoserithemage:mainfrom
tobigs:pr/telegram-only
Open

feat: add Telegram-only deploy mode (DEPLOY_WEB=false)#21
tobigs wants to merge 2 commits intoserithemage:mainfrom
tobigs:pr/telegram-only

Conversation

@tobigs
Copy link
Copy Markdown

@tobigs tobigs commented Mar 26, 2026

Summary

Adds DEPLOY_WEB=false environment variable that skips WebStack (CloudFront + S3 bucket) deployment, enabling a Telegram-bot-only setup with a smaller footprint.

Changes

  • packages/cdk/bin/app.ts: conditional WebStack instantiation based on DEPLOY_WEB env var (default true)
  • Makefile: new deploy-telegram target that sets DEPLOY_WEB=false
  • .env.example: document DEPLOY_WEB with description
  • docs/deployment.md: Telegram-only Deployment subsection in §4, DEPLOY_WEB row in §6 Deploy-time Feature Flags table
  • CLAUDE.md: design pattern entry

Test plan

  • Unit tests: all pass
  • E2E CDK synth pass
# Telegram-only — WebStack should be absent
DEPLOY_WEB=false npx cdk synth 2>&1 | grep "WebStack"
# Expected: no WebStack output

# Default — WebStack present
npx cdk synth 2>&1 | grep "WebStack"
make deploy-telegram   # dry run to verify Makefile target

🤖 Generated with Claude Code

Tobias added 2 commits March 26, 2026 18:06
- Add conditional WebStack instantiation in packages/cdk/bin/app.ts
- Add deploy-telegram Makefile target (DEPLOY_WEB=false)
- Add DEPLOY_WEB to .env.example with documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant