Skip to content

feat: staging environment mirroring production (#295)#456

Open
ladinoraa wants to merge 1 commit into
AnnabelJoe:mainfrom
ladinoraa:issue-295-staging-environment
Open

feat: staging environment mirroring production (#295)#456
ladinoraa wants to merge 1 commit into
AnnabelJoe:mainfrom
ladinoraa:issue-295-staging-environment

Conversation

@ladinoraa
Copy link
Copy Markdown
Contributor

Summary

Closes #295

Sets up a proper staging environment on Vercel that mirrors production, ensuring changes are validated on testnet before hitting mainnet.

Changes

  • .github/workflows/deploy-staging.yml — complete rewrite: CI gate (pnpm test + Redis service) → Vercel deploy to separate staging project via VERCEL_PROJECT_ID_STAGING → health check (5 retries) → summary URL
  • apps/web/.env.staging.example — expanded with all required vars (Supabase, Stellar testnet, minter key, Redis, CORS, Vercel IDs)
  • docs/STAGING.md (new) — full setup guide: Vercel project, Supabase project, testnet contract deploy, GitHub secrets, Vercel env vars, local simulation, smoke test, promote-to-production flow
  • docs/deployments.md — staging contract ID table added

Acceptance criteria

  • Staging environment deployed on Vercel (separate project)
  • Staging uses Stellar Testnet, production uses Mainnet
  • Staging DB is a separate Supabase project
  • Deployment pipeline deploys to staging before production

- Rewrite deploy-staging.yml:
  - Triggered on push to develop
  - CI gate (pnpm test + Redis service) must pass before deploy
  - Deploys to separate Vercel staging project via VERCEL_PROJECT_ID_STAGING
  - Health check (5 retries) against /api/health after deploy
  - Staging Stellar network hardcoded to testnet; production uses mainnet
- Expand .env.staging.example with all required variables including
  REDIS_URL, CORS_ALLOWED_ORIGINS, separate Supabase project values
- Add docs/STAGING.md: full setup guide (Vercel project, Supabase project,
  testnet contract deploy, GitHub secrets, local simulation, smoke test)
- Update docs/deployments.md: add staging contract ID table

Closes AnnabelJoe#295
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 4, 2026

@ladinoraa Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Set up staging environment mirroring production

1 participant