feat(infra): add SST infrastructure with Cloudflare deployment#6
Merged
andrewmelchor merged 2 commits intomainfrom Jan 22, 2026
Merged
feat(infra): add SST infrastructure with Cloudflare deployment#6andrewmelchor merged 2 commits intomainfrom
andrewmelchor merged 2 commits intomainfrom
Conversation
- Set up SST v3 with Cloudflare as home provider
- Add stage-based deployment (production, dev, pr-{N} previews)
- Configure GitHub Actions workflows:
- PR previews with auto-cleanup on close
- Auto-deploy to dev on push to main
- Manual dispatch for production
- Move webdocs from apps/ to packages/
- Add root tsconfig.json for SST type definitions
Domains:
- production: docs.t-req.io
- dev: dev.docs.t-req.io
- pr previews: pr-{N}.docs.t-req.io
Contributor
🚀 Preview DeploymentYour changes have been deployed to: 📖 Docs: https://docs-pr-6.t-req.io This preview will be automatically removed when the PR is closed. |
Greptile SummaryEstablishes SST v3 infrastructure for automated Cloudflare deployments of the webdocs site with stage-based domain routing. Key changes:
Issues found:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant GH as GitHub
participant Actions as GitHub Actions
participant SST as SST CLI
participant CF as Cloudflare
participant DNS as DNS (t-req.io)
Note over Dev,DNS: PR Preview Flow
Dev->>GH: Open/Update Pull Request
GH->>Actions: Trigger deploy.yml workflow
Actions->>Actions: Install dependencies & build
Actions->>SST: bunx sst deploy --stage pr-N
SST->>CF: Deploy to Workers (pr-N.docs.t-req.io)
CF->>DNS: Configure subdomain
DNS-->>CF: DNS configured
CF-->>SST: Deployment complete
SST-->>Actions: Success
Actions->>GH: Comment with preview URL
Note over Dev,DNS: Dev Deployment Flow
Dev->>GH: Push to main branch
GH->>Actions: Trigger deploy.yml workflow
Actions->>Actions: Install dependencies & build
Actions->>SST: bunx sst deploy --stage dev
SST->>CF: Deploy to Workers (dev.docs.t-req.io)
CF->>DNS: Configure subdomain
DNS-->>CF: DNS configured
CF-->>SST: Deployment complete
SST-->>Actions: Success
Note over Dev,DNS: Production Deployment Flow
Dev->>GH: Manual workflow dispatch
GH->>Actions: Trigger deploy-production.yml
Actions->>Actions: Install dependencies & build
Actions->>SST: bunx sst deploy --stage production
SST->>CF: Deploy to Workers (docs.t-req.io)
CF->>DNS: Configure domain
DNS-->>CF: DNS configured
CF-->>SST: Deployment complete (retained)
SST-->>Actions: Success
Actions->>GH: Deployment summary
Note over Dev,DNS: Cleanup Flow
Dev->>GH: Close Pull Request
GH->>Actions: Trigger cleanup.yml workflow
Actions->>SST: bunx sst remove --stage pr-N
SST->>CF: Remove Workers deployment
CF-->>SST: Cleanup complete
SST-->>Actions: Success
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add SST v3 infrastructure with Cloudflare deployment for the webdocs site. This establishes the foundation for automated
preview deployments, staging, and production releases.
Key changes:
apps/topackages/Type of Change
How Has This Been Tested?
Manual testing performed:
andrew) viabunx sst deploy --stage andrewChecklist