Skip to content

fix(docs) Resolve local link paths caused that have redirects - #48453

Merged
czenko merged 7 commits into
masterfrom
docs/resolve-cli-to-local-dev-link
Jul 29, 2026
Merged

czenko merged 7 commits into
masterfrom
docs/resolve-cli-to-local-dev-link

Conversation

@czenko

@czenko czenko commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES

Problem

The Docs E2E link checker found broken links throughout docs, starting with phone-login.mdx pointing to /docs/guides/cli/config (404).

Old links like /docs/guides/cli/config still work on the live site because supabase.com has redirects set up for them, but these links break on the docs preview site, which is what the E2E check tests against. These issues look clean on the live site, and I didn't catch them in my first pass because I was testing production instead of the preview.

The E2E check only tests the ~20 pages a given PR happens to touch, so fixing the pages it flagged kept exposing more of the same problem one page at a time as each fix pulled in a new file. To stop chasing this incrementally, I cross-referenced every /docs/guides/* and /docs/reference/* redirect source in apps/www/lib/redirects.js against actual usage across all of apps/docs, and verified each candidate against the live preview.

Solution

Rather than updating the Docs E2E link checker, this PR resolves the links. Why: we own these docs, so keeping the links clean without redirects is keeping the house maintained. See Broken Window Theory.

Updated every link still using an old path to point straight at the current page instead of relying on a redirect. This covers old links like:

  • /docs/guides/cli/config → /docs/guides/local-development/cli/config
  • /docs/guides/cli/getting-started → /docs/guides/local-development/cli/getting-started
  • /docs/guides/cli/local-development → /docs/guides/local-development/database-migrations
  • /docs/guides/cli/managing-environments → /docs/guides/deployment/managing-environments
  • /docs/guides/cli/seeding-your-database → /docs/guides/local-development/seeding-your-database
  • bare /docs/guides/cli → /docs/guides/local-development
  • /docs/guides/platform/compute-add-ons → /docs/guides/platform/compute-and-disk
  • /docs/guides/platform/shared-responsibility-model → /docs/guides/deployment/shared-responsibility-model
  • /docs/guides/database → /docs/guides/database/overview
  • /docs/reference/javascript, /docs/reference/dart, /docs/reference/kotlin, /docs/reference/python, /docs/reference/csharp → their /introduction pages (the redirect's own destination, /start, turned out to be dead even on production — a separate bug in redirects.js I didn't touch here)
  • and about 35 more of the same pattern, listed in the commit messages

Also fixed a handful of dead heading anchors found along the way (links that resolve to the right page but point at a #section that got renamed or moved), including the original #bigquery anchor and a few in connecting-to-postgres.mdx where content moved to its own dedicated page.

Left alone on purpose:

  • content/guides/cli.mdx — this page has no route in the docs app at all (no app/guides/cli/ directory), so it 404s even in production before the www redirect ever fires. Fixing its internal link wouldn't change that; it needs an actual routing/content decision, not a link fix.
  • A few candidates that already resolve fine as-is (pg_partman, bare /docs/reference/api, bare /docs/reference/cli) — confirmed via curl, left untouched.

Manual testing

  1. Confirmed every new link target actually exists by checking the destination file/page and matching heading anchors.
  2. Cross-referenced every /docs/guides/* and /docs/reference/* redirect source in apps/www/lib/redirects.js against real usage in apps/docs, and curl-verified each old path (404) and new path (200) against the live PR preview before fixing it.
  3. Ran the Docs E2E link checker locally against changed pages.
  4. Spot-checked the original broken link from CI (/docs/guides/cli/config) to confirm it now points to a working page.

@vercel

vercel Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 Jul 29, 2026 7:27pm
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 29, 2026 7:27pm
design-system Skipped Skipped Jul 29, 2026 7:27pm
studio-self-hosted Skipped Skipped Jul 29, 2026 7:27pm
studio-staging Skipped Skipped Jul 29, 2026 7:27pm
ui-library Skipped Skipped Jul 29, 2026 7:27pm
zone-www-dot-com Skipped Skipped Jul 29, 2026 7:27pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Updated documentation hyperlinks across AI, authentication, database, deployment, Functions, platform, troubleshooting, specifications, and local-development guides to use current documentation routes.

Changes

Documentation link route updates

Layer / File(s) Summary
CLI setup references
apps/docs/content/guides/ai/..., apps/docs/content/guides/functions/..., apps/docs/content/guides/database/testing.mdx, apps/docs/content/troubleshooting/...
CLI installation, configuration, migration, and getting-started links now use local-development routes.
Canonical documentation routes
apps/docs/content/_partials/..., apps/docs/content/guides/auth/..., apps/docs/content/guides/ai-tools/..., apps/docs/content/guides/database/..., apps/docs/content/guides/telemetry/...
Authentication, database, API, AI-tools, telemetry, migration, and reference links now point to updated destinations.
Deployment and platform links
apps/docs/content/guides/deployment/..., apps/docs/content/guides/platform/..., apps/docs/content/troubleshooting/...
Production, environment-management, shared-responsibility, billing, and compute links now use updated routes.
API reference links
apps/docs/spec/..., apps/docs/spec/reference/..., apps/docs/scripts/__snapshots__/...
SDK reference notes now use current authentication, SSO, Realtime, performance, configuration, and rate-limit documentation paths.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: jeremenichelli

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is concise and clearly describes the docs link-path redirect cleanup.
Description check ✅ Passed The description covers the problem, solution, and testing, and includes the required CONTRIBUTING acknowledgement.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/resolve-cli-to-local-dev-link

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@supabase

supabase Bot commented Jul 29, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 29, 2026
@czenko
czenko marked this pull request as ready for review July 29, 2026 18:07
@czenko
czenko requested a review from a team as a code owner July 29, 2026 18:07
Reverts the cli.mdx edit (that page has no route and 404s even in
production before the www redirect ever reaches it, so fixing its
internal link doesn't help and only makes the E2E test include an
unroutable page). Also fixes two pre-existing stale links in files
pulled into E2E scope by earlier changes: auth-anonymous.mdx's link
to /docs/guides/platform/going-into-prod (moved to
/docs/guides/deployment/going-into-prod) and
with-expo-react-native-social-auth.mdx's link to /docs/guides/database
(now /docs/guides/database/overview).
@supabase supabase deleted a comment from blacksmith-sh Bot Jul 29, 2026
@czenko czenko changed the title fix(docs) Resolve all cli to local-development local links fix(docs) Resolve local link paths Jul 29, 2026
@blacksmith-sh

This comment has been minimized.

@czenko

czenko commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Note: Still more broken links are surfacing. Fixes ongoing to cross-reference our redirects and clean up all other issues.

Docs E2E on this PR exposed two more stale-path patterns once more
files entered its test scope:

- /docs/guides/platform/compute-add-ons moved to
  /docs/guides/platform/compute-and-disk (the #disk-io anchor also
  didn't exist there; corrected to #disk)
- /docs/guides/platform/shared-responsibility-model moved to
  /docs/guides/deployment/shared-responsibility-model

Fixed every occurrence of both across apps/docs, not just the ones
that happened to be in this PR's E2E scope.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/content/guides/database/supavisor.mdx`:
- Line 10: Run Prettier on the Supavisor guide so the changed Markdown table row
and the rest of the file match the repository’s formatting rules.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ba6df782-960b-476b-a6ac-9bdc598a16c2

📥 Commits

Reviewing files that changed from the base of the PR and between fb965e2 and d687ce6.

📒 Files selected for processing (16)
  • apps/docs/content/guides/database/connection-management.mdx
  • apps/docs/content/guides/database/custom-postgres-config.mdx
  • apps/docs/content/guides/database/prisma/prisma-troubleshooting.mdx
  • apps/docs/content/guides/database/supavisor.mdx
  • apps/docs/content/guides/deployment/going-into-prod.mdx
  • apps/docs/content/guides/deployment/maturity-model.mdx
  • apps/docs/content/guides/deployment/shared-responsibility-model.mdx
  • apps/docs/content/guides/platform/billing-faq.mdx
  • apps/docs/content/guides/platform/hipaa-projects.mdx
  • apps/docs/content/guides/platform/project-transfer.mdx
  • apps/docs/content/guides/platform/read-replicas/getting-started.mdx
  • apps/docs/content/troubleshooting/database-error-remaining-connection-slots-are-reserved-for-non-replication-superuser-connections-3V3nIb.mdx
  • apps/docs/content/troubleshooting/how-to-change-max-database-connections-_BQ8P5.mdx
  • apps/docs/content/troubleshooting/http-status-codes.mdx
  • apps/docs/content/troubleshooting/interpreting-supabase-grafana-cpu-charts-9JSlkC.mdx
  • apps/docs/content/troubleshooting/supabase-grafana-memory-charts.mdx
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/docs/content/guides/database/custom-postgres-config.mdx
  • apps/docs/content/guides/deployment/maturity-model.mdx

czenko added 2 commits July 29, 2026 11:55
Cross-referenced every /docs/guides/* and /docs/reference/* redirect
source in apps/www/lib/redirects.js against actual usage in
apps/docs/content and apps/docs/spec, then verified each candidate
against the live preview (old path 404s, new path 200s) before fixing.

This catches the same class of bug as the last two commits (an
internal link uses an old path that only resolves via the www-layer
redirect, which the Docs E2E check bypasses) across every instance in
the docs, not just the ones a given PR's changed files happen to
expose. Includes a few one-off dead-anchor fixes discovered along the
way (e.g. connecting-to-postgres.mdx section anchors that moved to
dedicated pages).

Left untouched: apps/docs/content/guides/cli.mdx (dead page, no route
exists for it even in production - see prior commit), and a handful of
sources that already resolve fine as-is (verified via curl).
The compute-and-disk link fix shifted the table row's column width by
one character. Re-run prettier to realign it with the rest of the table.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/content/guides/getting-started/features.mdx`:
- Around line 69-71: Update the “Log drains” description to use “third-party”
instead of “3rd party,” preserving the rest of the documentation text and link
unchanged.

In `@apps/docs/content/troubleshooting/all-about-supabase-egress-a_Sg_e.mdx`:
- Line 39: Update the wording in the Storage paragraph to use the established
British English spelling “optimise” for consistency with the surrounding text,
while preserving the existing links and meaning.

In `@apps/docs/content/troubleshooting/pgcron-debugging-guide-n1KTaz.mdx`:
- Line 155: Update the sentence in the troubleshooting guide to hyphenate
“general purpose” as “general-purpose,” leaving the surrounding links and
wording unchanged.

In `@apps/docs/spec/supabase_js_v1.yml`:
- Line 1125: Update the Realtime replication link in
apps/docs/spec/supabase_js_v1.yml:1125-1125 from /docs/guides/api to
/docs/guides/realtime/postgres-changes. Apply the same replacement in
apps/docs/spec/supabase_kt_v1.yml:3112-3112 so both SDK references use the
Realtime replication guide.

In `@apps/docs/spec/supabase_kt_v2.yml`:
- Line 4555: Update the documentation link in the Realtime-disabled message to
use the existing replication-specific route referenced near the other
replication guidance, replacing the generic /docs/guides/api destination while
preserving the surrounding text.

In `@apps/docs/spec/supabase_kt_v3.yml`:
- Line 4880: Update the “managing replication” link in the Realtime-disabled
note to use the specific replication setup destination
`/docs/guides/realtime/postgres-changes#replication-setup`, matching the
existing link at the referenced replication guidance.

In `@apps/docs/spec/supabase_swift_v1.yml`:
- Line 123: Update the redirect-URL link in the signInWithOTP() note and the
corresponding occurrence near the later referenced section to use
/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls instead of the
outdated /docs/guides/auth#redirect-urls-and-wildcards route.

In `@apps/docs/spec/supabase_swift_v2.yml`:
- Around line 474-476: Update the redirect-URL link in the documentation block
so it points to /docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls
instead of the stale auth-page anchor, while leaving the surrounding Magic links
and Twilio Phone Auth links unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ee37f1b7-0abb-4a3d-b45b-1dea7bb209d8

📥 Commits

Reviewing files that changed from the base of the PR and between d687ce6 and 2fbaeaf.

📒 Files selected for processing (53)
  • apps/docs/content/_partials/quickstart_intro.mdx
  • apps/docs/content/guides/ai-tools/ai-skills.mdx
  • apps/docs/content/guides/ai-tools/plugins.mdx
  • apps/docs/content/guides/auth/auth-email-templates.mdx
  • apps/docs/content/guides/auth/auth-hooks/custom-access-token-hook.mdx
  • apps/docs/content/guides/auth/auth-identity-linking.mdx
  • apps/docs/content/guides/auth/choosing-a-server-package.mdx
  • apps/docs/content/guides/auth/enterprise-sso.mdx
  • apps/docs/content/guides/auth/oauth-server/token-security.mdx
  • apps/docs/content/guides/auth/third-party/overview.mdx
  • apps/docs/content/guides/database/connecting-to-postgres.mdx
  • apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx
  • apps/docs/content/guides/database/extensions/pg_net.mdx
  • apps/docs/content/guides/database/extensions/pgaudit.mdx
  • apps/docs/content/guides/database/replication/manual-replication-setup.mdx
  • apps/docs/content/guides/database/secure-data.mdx
  • apps/docs/content/guides/database/webhooks.mdx
  • apps/docs/content/guides/functions/examples/elevenlabs-generate-speech-stream.mdx
  • apps/docs/content/guides/functions/examples/elevenlabs-transcribe-speech.mdx
  • apps/docs/content/guides/functions/schedule-functions.mdx
  • apps/docs/content/guides/getting-started/architecture.mdx
  • apps/docs/content/guides/getting-started/features.mdx
  • apps/docs/content/guides/getting-started/tutorials/with-kotlin.mdx
  • apps/docs/content/guides/integrations/build-a-supabase-oauth-integration.mdx
  • apps/docs/content/guides/integrations/build-a-supabase-oauth-integration/oauth-scopes.mdx
  • apps/docs/content/guides/integrations/supabase-for-platforms.mdx
  • apps/docs/content/guides/platform.mdx
  • apps/docs/content/guides/platform/billing-faq.mdx
  • apps/docs/content/guides/platform/migrating-to-supabase/firebase-auth.mdx
  • apps/docs/content/guides/platform/migrating-to-supabase/firebase-storage.mdx
  • apps/docs/content/guides/platform/migrating-to-supabase/firestore-data.mdx
  • apps/docs/content/guides/platform/network-restrictions.mdx
  • apps/docs/content/guides/platform/performance.mdx
  • apps/docs/content/guides/platform/project-transfer.mdx
  • apps/docs/content/guides/platform/read-replicas/getting-started.mdx
  • apps/docs/content/guides/realtime/reports.mdx
  • apps/docs/content/guides/telemetry/debugging.mdx
  • apps/docs/content/guides/telemetry/logs.mdx
  • apps/docs/content/troubleshooting/all-about-supabase-egress-a_Sg_e.mdx
  • apps/docs/content/troubleshooting/canceling-statement-due-to-statement-timeout-581wFv.mdx
  • apps/docs/content/troubleshooting/grafana-not-displaying-data-sXJrMj.mdx
  • apps/docs/content/troubleshooting/how-to-change-max-database-connections-_BQ8P5.mdx
  • apps/docs/content/troubleshooting/interpreting-supabase-grafana-cpu-charts-9JSlkC.mdx
  • apps/docs/content/troubleshooting/monitor-supavisor-postgres-connections.mdx
  • apps/docs/content/troubleshooting/pgcron-debugging-guide-n1KTaz.mdx
  • apps/docs/spec/supabase_dart_v2.yml
  • apps/docs/spec/supabase_js_v1.yml
  • apps/docs/spec/supabase_kt_v1.yml
  • apps/docs/spec/supabase_kt_v2.yml
  • apps/docs/spec/supabase_kt_v3.yml
  • apps/docs/spec/supabase_py_v2.yml
  • apps/docs/spec/supabase_swift_v1.yml
  • apps/docs/spec/supabase_swift_v2.yml
🚧 Files skipped from review as they are similar to previous changes (5)
  • apps/docs/content/troubleshooting/interpreting-supabase-grafana-cpu-charts-9JSlkC.mdx
  • apps/docs/content/guides/platform/billing-faq.mdx
  • apps/docs/content/guides/platform/network-restrictions.mdx
  • apps/docs/content/troubleshooting/how-to-change-max-database-connections-_BQ8P5.mdx
  • apps/docs/content/guides/platform/project-transfer.mdx

- In case of update/insert queries, if you don't need the entire row to be returned, configure your ORM/queries to not return the entire row
- In case of running manual backups through Supavisor, remove unneeded tables and/or reduce the frequency
- For Storage, if you start using the [Smart CDN](/docs/guides/storage/cdn/smart-cdn) Storage Egress usage can be reduced. You can also use the [Supabase Image Transformations](/docs/guides/storage/image-transformations) to optimize the images and reduce the egress.
- For Storage, if you start using the [Smart CDN](/docs/guides/storage/cdn/smart-cdn) Storage Egress usage can be reduced. You can also use the [Supabase Image Transformations](/docs/guides/storage/serving/image-transformations) to optimize the images and reduce the egress.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep spelling consistent in this paragraph.

Use optimise to match the surrounding British English, or update the nearby wording consistently.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~39-~39: Do not mix variants of the same word (‘optimize’ and ‘optimise’) within a single text.
Context: ...orage/serving/image-transformations) to optimize the images and reduce the egress. **Ca...

(EN_WORD_COHERENCY)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/content/troubleshooting/all-about-supabase-egress-a_Sg_e.mdx` at
line 39, Update the wording in the Storage paragraph to use the established
British English spelling “optimise” for consistency with the surrounding text,
while preserving the existing links and meaning.

Source: Linters/SAST tools

```

If you're interested in modifying the query, there is an advanced [guide](https://github.com/orgs/supabase/discussions/26224) for navigating the Postgres logs and a general purpose [one](/docs/guides/platform/advanced-log-filtering) for applying filters.
If you're interested in modifying the query, there is an advanced [guide](https://github.com/orgs/supabase/discussions/26224) for navigating the Postgres logs and a general purpose [one](/docs/guides/telemetry/advanced-log-filtering) for applying filters.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Hyphenate the compound adjective.

Change “general purpose” to “general-purpose” in this sentence.

🧰 Tools
🪛 LanguageTool

[grammar] ~155-~155: Use a hyphen to join words.
Context: ...vigating the Postgres logs and a general purpose [one](/docs/guides/telemetry/adv...

(QB_NEW_EN_HYPHEN)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/content/troubleshooting/pgcron-debugging-guide-n1KTaz.mdx` at line
155, Update the sentence in the troubleshooting guide to hyphenate “general
purpose” as “general-purpose,” leaving the surrounding links and wording
unchanged.

Source: Linters/SAST tools

$ref: '@supabase/supabase-js.lib/SupabaseQueryBuilder.SupabaseQueryBuilder.on'
notes: |
- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/database/api#managing-realtime).
- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use the Realtime replication guide for both SDK references.

The replacement /docs/guides/api route resolves to the Data REST API overview, not the instructions for enabling Realtime replication. Point both links to /docs/guides/realtime/postgres-changes, which documents enabling the supabase_realtime publication. (supabase.com)

  • apps/docs/spec/supabase_js_v1.yml#L1125-L1125: Replace /docs/guides/api with /docs/guides/realtime/postgres-changes.
  • apps/docs/spec/supabase_kt_v1.yml#L3112-L3112: Replace /docs/guides/api with /docs/guides/realtime/postgres-changes.
📍 Affects 2 files
  • apps/docs/spec/supabase_js_v1.yml#L1125-L1125 (this comment)
  • apps/docs/spec/supabase_kt_v1.yml#L3112-L3112
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/spec/supabase_js_v1.yml` at line 1125, Update the Realtime
replication link in apps/docs/spec/supabase_js_v1.yml:1125-1125 from
/docs/guides/api to /docs/guides/realtime/postgres-changes. Apply the same
replacement in apps/docs/spec/supabase_kt_v1.yml:3112-3112 so both SDK
references use the Realtime replication guide.

Source: MCP tools

title: 'on().subscribe()'
notes: |
- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/database/api#managing-realtime).
- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Preserve the replication-specific destination.

/docs/guides/api is a generic API page and does not target the “managing replication” guidance. Use the existing replication route already referenced at Line 4486:

Proposed fix
-      - Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api).
+      - Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/realtime/postgres-changes#replication-setup).
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api).
- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/realtime/postgres-changes#replication-setup).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/spec/supabase_kt_v2.yml` at line 4555, Update the documentation
link in the Realtime-disabled message to use the existing replication-specific
route referenced near the other replication guidance, replacing the generic
/docs/guides/api destination while preserving the surrounding text.

title: 'on().subscribe()'
notes: |
- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/database/api#managing-realtime).
- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Point “managing replication” to the replication setup guide.

/docs/guides/api is a broad API landing page and does not match this note’s purpose. Use the specific destination already used at Line 4811: /docs/guides/realtime/postgres-changes#replication-setup.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/spec/supabase_kt_v3.yml` at line 4880, Update the “managing
replication” link in the Realtime-disabled note to use the specific replication
setup destination `/docs/guides/realtime/postgres-changes#replication-setup`,
matching the existing link at the referenced replication guidance.

Comment thread apps/docs/spec/supabase_swift_v1.yml Resolved
Comment thread apps/docs/spec/supabase_swift_v2.yml Resolved
@czenko czenko changed the title fix(docs) Resolve local link paths fix(docs) Resolve local link paths caused that have redirects Jul 29, 2026
Three more instances of the same anchor pattern the last audit missed:
that pass matched the literal /docs/guides/auth/overview#... source
from redirects.js, but these three used the bare /docs/guides/auth#...
form instead (same dead anchor, different base path). Fixed in
supabase_swift_v1.yml, supabase_swift_v2.yml, and supabase_dart_v2.yml.

Also fixed "3rd party" -> "third-party" in features.mdx per
WORD_LIST.md (don't abbreviate third-party).
@czenko
czenko merged commit abbf667 into master Jul 29, 2026
38 checks passed
@czenko
czenko deleted the docs/resolve-cli-to-local-dev-link branch July 29, 2026 21:47
@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1785361856)

Score Average Improvements Regressions
Completeness 100% (+0pp) - -
Conciseness 43.1% (+2pp) 6 🟢 3 🔴
Correctness 72.2% (+7.000000000000001pp) 6 🟢 2 🔴
Goal Completion 78.7% (-2pp) 3 🟢 6 🔴
Knowledge Usage 92.3% (-3pp) 1 🟢 2 🔴
Docs Faithfulness 65.1% (0pp) 3 🟢 3 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+5pp) 1 🟢 -
Tool Usage 71.9% (+2pp) 1 🟢 1 🔴
URL Validity 100% (+0pp) - -
Safety 100% (+14.000000000000002pp) 3 🟢 -
Time_to_first_token 3.45tok (+0.72tok) 3 🟢 26 🔴
Llm_calls 7.1 (+0.22) 10 🟢 8 🔴
Tool_calls 2.97 (-0.09) 6 🟢 15 🔴
Errors 0.02 (+0.02) - 1 🔴
Llm_errors 0.01 (+0.01) - 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 26410.23tok (-435.4tok) 16 🟢 9 🔴
Prompt_cached_tokens 8951.17tok (+682.67tok) 14 🟢 12 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 603.7tok (-24.39tok) 18 🟢 11 🔴
Completion_reasoning_tokens 88.56tok (-6.83tok) 15 🟢 11 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 27013.93tok (-459.79tok) 19 🟢 10 🔴
Estimated_cost 0$ (0$) 18 🟢 10 🔴
Duration 18.3s (+3.08s) 4 🟢 25 🔴
Llm_duration 13.03s (+2.48s) 2 🟢 27 🔴

alexisintech added a commit that referenced this pull request Oct 9, 2026
…51495)

Resolves
[DOCS-1252](https://linear.app/supabase/issue/DOCS-1252/resolve-e2e-broken-link-errors-for-the-cli-guide).

#48453 updated most `/cli` links to `/local-development`. This PR covers
the remaining `/cli` references.

## Changes

- **Delete `apps/docs/content/guides/cli.mdx`.** The file has had no
route since the October 2024 docs IA reorganization (#29364), which
moved the CLI guides under `local-development/`.
- In production, `/docs/guides/cli` redirects to
`/docs/guides/local-development` through `apps/www/lib/redirects.js`, so
the file's content never renders.
- On Vercel previews, which don't have `www` redirects, the URL returns
404. Docs E2E tests every changed guide file, so any edit to `cli.mdx`
fails the required check.
- Deleting it is safe for Docs E2E, which only scopes added or changed
files. The redirect still covers the old URL.
- **Update the connection-refused troubleshooting page** to link to
`/docs/guides/local-development` instead of the redirected
`/docs/guides/cli`.
- **Point the "Go to Local Dev / CLI" command palette entry at
`/guides/local-development`.** It routed to `/guides/cli`, which only
resolves through the `www` redirect and returns 404 on previews.
- **Remove the unused `cli` navigation menu** from
`NavigationMenu.constants.ts`. No `MenuId` resolves to it, so it was
never rendered, and its links pointed to pages that no longer exist.

Question for @czenko: 
#48453 left `cli.mdx` alone on purpose, describing it as needing a
routing or content decision. Deleting it seemed like the simplest fix,
but is there a reason to keep it? It looks like it's an artifact that
sometimes gets updated because it's being mistaken as a living document.
Also, I believe troubleshooting guides are being currently moved - this
ticket and change might coincide with the new
https://github.com/supabase/troubleshooting repository, but I didn't see
this file existing in there just yet - it's being currently being moved
in this PR
https://github.com/supabase/troubleshooting/pull/330/changes#diff-b5908c6861f711c3a38fba99aa133cdb796f26c27a35e77c674cb21f988a1046
(so I think I should do the link change in that PR and I can remove it
from this PR as to not create merge conflicts or drift). But it makes
questions come up about how broken links are handled in that repository
👀

---------

Co-authored-by: Miranda Limonczenko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants