-
Notifications
You must be signed in to change notification settings - Fork 11
14 Deployment
Vicky Patel edited this page Sep 14, 2026
·
1 revision
Step-by-step production deployment instructions, environment configuration, and operational verification.
PACT OS is designed for deployment on Vercel Cloud Edge paired with Supabase PostgreSQL:
graph LR
Git[Git Repository main branch] --> Vercel[Vercel Edge Platform]
Vercel --> Build[Next.js Production Build]
Build --> Functions[Serverless / Edge Functions]
Functions --> Supabase[(Supabase PostgreSQL Database)]
VercelCron[Vercel Cron Sweeper] -->|Every Minute| Sweeper[/api/cron/sweep-deadlines]
- All 26 SQL migrations pushed to production Supabase instance (
npx supabase db push). - Environment variables configured on Vercel Dashboard.
-
CRON_SECRETgenerated and synchronized between Vercel and API route. - Row Level Security (RLS) enabled on all 26 tables.
- Domain name and SSL certificates provisioned.
| Variable | Description | Security Level |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL |
Production Supabase URL | Public |
NEXT_PUBLIC_SUPABASE_ANON_KEY |
Supabase Anonymous Key | Public |
SUPABASE_SERVICE_ROLE_KEY |
Supabase Service Role Key | CONFIDENTIAL (Server-Only) |
CRON_SECRET |
Timing-safe Bearer secret for /api/cron/sweep-deadlines
|
CONFIDENTIAL (Server-Only) |
NEXT_PUBLIC_APP_URL |
Authoritative production domain (e.g. https://pactos.app) |
Public |
Pushes the 26 frozen SQL migration files to the production PostgreSQL database:
npx supabase db push --linked# Production Build & Deploy
vercel --prodRun automated staging/production smoke verification tests:
npm run release:checkVerify that /api/health returns status 200 OK and database connectivity status ok.
| ๐๏ธ Project Hub | ๐ ๏ธ Developer Docs | ๐ฌ Community & Support |
|---|---|---|
| GitHub Repository | System Architecture | GitHub Discussions |
| Beginner Issue Catalog | Design System | Open Issues |
| Production Deployment | API Reference | Pull Requests |
| Project Roadmap | Testing & QA Matrix | Maintainer Governance |
- Codebase Tour
- Domain Model
- Database Architecture
- Security Model
- Financial System
- Consequence System
- External Integrations
- Discipline Intelligence
- Data Portability & Sync