Scaffolded by Nexus onto the SST paved road (SST v4 + Next.js 16).
- prod: https://DOMAIN
- staging: https://STAGING_DOMAIN
- previews: https://PREVIEW_DOMAIN (per PR, torn down on close)
pnpm install
pnpm devCI/CD is already wired: push to main deploys staging + production, PRs against main get preview environments (if enabled at scaffold time).
- Declare secrets in
secrets.example.ts+sst.config.ts. sst secret set <Name> <value> --stage productionand--fallbackfor previews (without the fallback, preview stages deploy with broken config).- Replace
app/page.tsx.
This repo is the public template Bike4Mind/sst-app-template (public so any org can instantiate it. cross-org constraint). Placeholder tokens (__LIKE_THIS__) are substituted by Nexus's render-config stage; pnpm check-tokens verifies none remain in a scaffolded copy. The token list is a contract with cli/gateway.ts renderTemplateTokens() in the Nexus repo. change both together.
Setup checklist a consumer repo needs (Nexus automates all of this):
- GitHub Environments
production,staging,preview_cleanup, each withAWS_ROLE_ARN - Repo added to org-secret visibility lists (
B4M_CI_BOT_PRIVATE_KEY,SLACK_WEBHOOK_URL) - OIDC deploy roles + DNS records (b4m-infra tofu)