Repository navigation
Start free accounts from a single initial schema - #23
Merged
Merged
Conversation
New accounts default to an active `free` epoch with an effectively unlimited allowance, and the migration moves existing never-funded accounts onto it. Column defaults apply to the API role's restricted INSERT, so no privileges change. A paid Stripe invoice still replaces the free epoch if billing is configured later. Pricing, llms.txt, the account page and docs now describe a single free plan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The build command migrates before `next build`, using the Neon integration's owner DATABASE_URL because the app roles cannot run DDL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/managed-service.md # docs/search-discovery.md # service/app/pricing/page.tsx # service/public/llms.txt # service/src/pages.ts
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.
Juiced accounts start free with workspace compute included. The first deployment creates the complete service and authentication schema from
service/migrations/0001-initial.sql, including the free allowance defaults. Alpha grants and their operator command are removed.Migrations run transactionally under an advisory lock, skip applied migrations, and seed the CLI client idempotently. Vercel runs
npm run migrate && next build, using the Neon owner'sDATABASE_URL. The obsolete auth-schema generation command and pre-launch backfills are removed. The account page reflects the free plan; Unlimited remains marked coming soon.Validation:
Before merging, connect
juiced-dbto production so builds receiveDATABASE_URL:Preview builds also require service configuration and database variables. The owner URL is available to production functions at runtime as well as builds.
Paid plans still require isolating or retiring the native free budget before enforcing a paid compute cap.