chore(db): redeploy Supabase bootstrap#139
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Reviewer's GuideUpdates the Tokmetric activation runbook to document Supabase as the canonical database provider and to define a controlled first-time schema bootstrap process using environment variables for the Next.js/Prisma app and Vercel builds. Flow diagram for controlled first-time Supabase schema bootstrapflowchart LR
A[New or empty Supabase PostgreSQL project] --> B[Configure pooled and direct URLs
POSTGRES_PRISMA_URL
POSTGRES_URL_NON_POOLING]
B --> C[Set bootstrap env vars
AUTO_DB_PUSH=true
AUTO_DB_SEED=true
ADMIN_EMAIL
ADMIN_INITIAL_PASSWORD
SEED_DEMO_DATA=false]
C --> D[Vercel build script runs
- generate Prisma
- synchronize schema
- create admin record
- seed initial products
- build Next.js]
D --> E[After successful bootstrap
AUTO_DB_PUSH=false
AUTO_DB_SEED=false]
E --> F[Redeploy once more with bootstrap disabled]
F --> G[Production runtime uses pooled URL for serverless traffic]
F --> H[Admin workflows use direct URL for schema administration]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Force the current database bootstrap, environment compatibility, and Supabase activation documentation through a normal PR merge so Vercel deploys the latest main branch.
Summary by Sourcery
Document Supabase as the canonical database provider and add a controlled first-time schema bootstrap runbook for Tokmetric activation.
Documentation: