Skip to content

test(docs): redirect - #41399

Merged
ChrisChinchilla merged 1 commit into
masterfrom
charis/test/redirect
Dec 17, 2025
Merged

ChrisChinchilla merged 1 commit into
masterfrom
charis/test/redirect

Conversation

@charislam

@charislam charislam commented Dec 16, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation
    • Updated documentation redirects for authentication helpers to point to the server-side SSR migration guide.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel

vercel Bot commented Dec 16, 2025 •

Copy link
Copy Markdown

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

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Dec 16, 2025 4:52pm
zone-www-dot-com Ready Ready Preview, Comment Dec 16, 2025 4:52pm
6 Skipped Deployments
Project Deployment Review Updated (UTC)
studio Ignored Ignored Dec 16, 2025 4:52pm
cms Skipped Skipped Dec 16, 2025 4:52pm
design-system Skipped Skipped Dec 16, 2025 4:52pm
studio-self-hosted Skipped Skipped Dec 16, 2025 4:52pm
studio-staging Skipped Skipped Dec 16, 2025 4:52pm
ui-library Skipped Skipped Dec 16, 2025 4:52pm

@supabase

supabase Bot commented Dec 16, 2025

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 ↗︎.

@coderabbitai

coderabbitai Bot commented Dec 16, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

This change replaces a specific redirect entry for the auth UI overview documentation with a catch-all pattern that routes all auth-helpers documentation paths to the SSR migration guide, maintaining the permanent redirect status.

Changes

Cohort / File(s) Change Summary
Auth helpers redirect migration
apps/www/lib/redirects.js
Replaced specific redirect from /docs/guides/auth/auth-helpers/auth-ui-overview to /docs/guides/auth/auth-helpers/auth-ui with catch-all pattern /:path* redirecting to /docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested labels

documentation

Suggested reviewers

  • cemalkilic

Poem

🐰 A redirect takes flight,
From auth helpers to migration's light,
One catch-all route catches all the rest,
Guiding docs users toward SSR's best! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is entirely missing; the author did not provide any context, rationale, or information about the changes. Add a complete description following the repository template, including the kind of change, current behavior, new behavior, and relevant context.
Title check ❓ Inconclusive The title 'test(docs): redirect' is vague and overly generic; it does not clearly convey what specific redirect change is being made or why. Use a more descriptive title that specifies the redirect change, e.g., 'docs: redirect auth-helpers to SSR migration guide'.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch charis/test/redirect

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

@charislam
charislam marked this pull request as ready for review December 17, 2025 14:56

@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

📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d3d8331 and 3c4ecba.

📒 Files selected for processing (1)
  • apps/www/lib/redirects.js (1 hunks)

Comment thread apps/www/lib/redirects.js
Comment on lines 1302 to 1305
permanent: true,
source: '/docs/guides/auth/auth-helpers/auth-ui-overview',
destination: '/docs/guides/auth/auth-helpers/auth-ui',
source: '/docs/guides/auth/auth-helpers/:path*',
destination: '/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers',
},

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.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

# Check if the file exists and its size
wc -l apps/www/lib/redirects.js

Repository: supabase/supabase

Length of output: 91


🏁 Script executed:

# Read the catch-all redirect at lines 1302-1305
sed -n '1300,1310p' apps/www/lib/redirects.js

Repository: supabase/supabase

Length of output: 424


🏁 Script executed:

# Read dependent redirects mentioned at lines 1326, 1331, 1336
sed -n '1320,1345p' apps/www/lib/redirects.js

Repository: supabase/supabase

Length of output: 799


🏁 Script executed:

# Read the fourth dependent redirect around line 2163
sed -n '2160,2170p' apps/www/lib/redirects.js

Repository: supabase/supabase

Length of output: 375


🏁 Script executed:

# Search for other references to auth-helpers paths in the codebase
rg "docs/guides/auth/auth-helpers" --type=js --type=ts --type=jsx --type=tsx --type=md -c

Repository: supabase/supabase

Length of output: 88


🏁 Script executed:

# Also check for references in redirect destinations specifically
rg "auth-helpers" apps/www/lib/redirects.js | wc -l

Repository: supabase/supabase

Length of output: 63


🏁 Script executed:

# Search for auth-helpers references across the entire codebase
rg "auth-helpers" apps/www --max-count=20

Repository: supabase/supabase

Length of output: 11715


🏁 Script executed:

# Count total auth-helpers references by file to understand scope
rg "auth-helpers" apps/www -l | head -20

Repository: supabase/supabase

Length of output: 1151


Redirect chains detected: update dependent redirects to point directly to the final destination.

This catch-all redirect creates multi-hop chains with existing rules in the file. Several redirects point TO auth-helpers paths that will now be caught by this new rule, causing users and search engines to traverse multiple redirects:

  • /docs/reference/auth-helpers → /docs/guides/auth/auth-helpers/ → migration guide
  • /docs/reference/auth-helpers/next-js → /docs/guides/auth/auth-helpers/nextjs → migration guide
  • /docs/reference/auth-helpers/sveltekit → /docs/guides/auth/auth-helpers/sveltekit → migration guide
  • /docs/guides/auth/auth-helpers/nextjs-server-components → /docs/guides/auth/auth-helpers/nextjs → migration guide

Redirect chains dilute SEO value and slow down user experience. Each redirect requires reloading content, which disrupts user experience.

Update the dependent redirects to point directly to the migration guide destination:

 {
   permanent: true,
   source: '/docs/reference/auth-helpers',
-  destination: '/docs/guides/auth/auth-helpers/',
+  destination: '/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers',
 },
 {
   permanent: true,
   source: '/docs/reference/auth-helpers/next-js',
-  destination: '/docs/guides/auth/auth-helpers/nextjs',
+  destination: '/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers',
 },
 {
   permanent: true,
   source: '/docs/reference/auth-helpers/sveltekit',
-  destination: '/docs/guides/auth/auth-helpers/sveltekit',
+  destination: '/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers',
 },
 {
   permanent: true,
   source: '/docs/guides/auth/auth-helpers/nextjs-server-components',
-  destination: '/docs/guides/auth/auth-helpers/nextjs',
+  destination: '/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers',
 },

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In apps/www/lib/redirects.js around lines 1302 to 1305, the new catch-all
redirect for /docs/guides/auth/auth-helpers/:path* causes redirect chains;
update any existing redirects that currently point to auth-helpers paths so they
point directly to
'/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers' instead
(e.g., rules for /docs/reference/auth-helpers,
/docs/reference/auth-helpers/next-js, /docs/reference/auth-helpers/sveltekit,
and /docs/guides/auth/auth-helpers/nextjs-server-components), leaving the
catch-all if still needed but ensuring no redirect targets another redirect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants