Repository navigation
docs(cli): add local-dev workflow guide and restructure CLI docs - #47932
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughLocal development documentation was reorganized around CLI setup, end-to-end workflows, migrations, and seeding. Navigation entries and legacy redirects now point to the revised guide structure. ChangesLocal development documentation
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…nto docs/refine-cli-docs
|
LGTM conditional on addressing the comments. Nothing major, just some consistency nits. Thank you so much for getting your CLI content into a PR after all these months! And thank you for sorting out a real pain point for our users, much appreciated. 💚 SummaryStrong restructure of the Local Dev / CLI section. The new workflow guide fills a real gap, the nav is much clearer, and the correctness fixes (seed SQL, conditional What works well
Nits (non-blocking)
CI: Verdict: Approve with nits |
Co-authored-by: Nik Richers <[email protected]>
Co-authored-by: Nik Richers <[email protected]>
…nto docs/refine-cli-docs
avallete
left a comment
There was a problem hiding this comment.
LGTM, I'll want to update this document once we make pg-delta the new default for all the "diff/declarative schema" story.
It introduces some new commands that I think might help reduce the pitfalls users currently get:
Meanwhile, this is a good documentation, the "use the declarative schema once you write in it" is good. I think in the future, we might provide an alternative to use db declarative export to re-generate (hence extract) from database state toward your declarative schema, if you ever experiment with pure psql and wanna get back the result into your declarative schema flow.
Braintrust eval reportEvals in progress... ⌛ |
I have read the CONTRIBUTING.md file.
YES
What kind of change does this PR introduce?
Reworks the Local Dev / CLI docs section around a single, task-based onboarding flow, and fixes several correctness issues in the existing pages.
New
cli-workflows.mdx): an end-to-end, task-oriented guide covering the two starting points (move an existing project to local dev / start a new project from scratch), the daily development loop, pushing to a remote, cleaning up generated migrations, and troubleshooting.Restructured
overview.mdx→database-migrations.mdx(it was a migrations tutorial mislabeled "Getting started"; the real overview is the section landing page). Added redirects for the old URL.Clarified
supabase; npm/pnpm/yarn install a dev dependency you run vianpx supabase.initfirst) and fixed the confusing install-tab labeling.Fixed
seeding-your-database.mdx: corrected invalid SQL in the example (string literals were double-quoted) and reframed Snaplet as an optional, community-maintained tool with working links.database-migrations.mdx: removed the confusing unconditionaldb pullstep in the deploy flow and a stale "we're consolidating commands" note.cli-workflows.mdx: alignedgen typeswith the current CLI syntax (--lang typescript).Files
apps/docs/content/guides/local-development/(new guide, rename, edits)apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsapps/www/lib/redirects.jsSummary by CodeRabbit
supabase init/startguidance.db pull/db resetand recommending a hand-writtensupabase/seed.sql.