Repository navigation
Revert "Revert "docs: Remove Auth Helpers"" - #41441
ChrisChinchilla merged 1 commit into
Conversation
This reverts commit 7415e9f.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
WalkthroughThe PR removes deprecated Auth Helpers documentation pages, related navigation references, and an associated redirect entry. It eliminates the main auth-helpers guide, framework-specific implementations (Next.js, SvelteKit, Remix), deprecated Auth UI guides, the "Auth UI" navigation subsection, and a deprecation warning partial. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (10)
apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts(0 hunks)apps/docs/content/_partials/auth_helpers.mdx(0 hunks)apps/docs/content/guides/auth/auth-helpers.mdx(0 hunks)apps/docs/content/guides/auth/auth-helpers/auth-ui.mdx(0 hunks)apps/docs/content/guides/auth/auth-helpers/flutter-auth-ui.mdx(0 hunks)apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx(0 hunks)apps/docs/content/guides/auth/auth-helpers/nextjs.mdx(0 hunks)apps/docs/content/guides/auth/auth-helpers/remix.mdx(0 hunks)apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx(0 hunks)apps/www/lib/redirects.js(1 hunks)
💤 Files with no reviewable changes (9)
- apps/docs/content/guides/auth/auth-helpers/auth-ui.mdx
- apps/docs/content/guides/auth/auth-helpers.mdx
- apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
- apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx
- apps/docs/content/guides/auth/auth-helpers/nextjs.mdx
- apps/docs/content/guides/auth/auth-helpers/flutter-auth-ui.mdx
- apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx
- apps/docs/content/guides/auth/auth-helpers/remix.mdx
- apps/docs/content/_partials/auth_helpers.mdx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build
- GitHub Check: typecheck
| source: '/docs/guides/auth/auth-helpers/nextjs-server-components', | ||
| destination: '/docs/guides/auth/auth-helpers/nextjs', | ||
| }, | ||
|
|
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Search for the catch-all redirect around line 1303-1305
echo "=== Checking catch-all redirect in redirects.js ==="
sed -n '1300,1310p' apps/www/lib/redirects.js
# Search for any hardcoded references to the removed paths
echo -e "\n=== Searching for hardcoded references to nextjs-server-components ==="
rg -n "nextjs-server-components" --type-add 'web:*.{js,jsx,ts,tsx,md,mdx}' --type web apps/www/
echo -e "\n=== Searching for hardcoded references to auth-helpers/nextjs ==="
rg -n "auth-helpers/nextjs" --type-add 'web:*.{js,jsx,ts,tsx,md,mdx}' --type web apps/www/Repository: supabase/supabase
Length of output: 3271
Update hardcoded links in blog posts to reference the migration guide instead of the deprecated Auth Helpers documentation.
The removal of the redirect for nextjs-server-components is appropriate since its destination (/docs/guides/auth/auth-helpers/nextjs) no longer exists. The catch-all redirect at lines 1303-1305 properly handles requests to /docs/guides/auth/auth-helpers/* by directing users to the migration guide.
However, multiple blog posts still contain hardcoded links to /docs/guides/auth/auth-helpers/nextjs:
apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdxapps/www/_blog/2023-08-10-using-supabase-with-vercel.mdx(5 references)apps/www/_blog/2023-06-09-supabase-beta-update-may-2023.mdxapps/www/_blog/2022-11-02-supabase-beta-update-october-2022.mdx
These should be updated to link to /docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers to ensure blog content directs users to the current migration path rather than relying on redirect chains.
🤖 Prompt for AI Agents
In apps/www/lib/redirects.js around line 2160, update the referenced hardcoded
blog links that still point to the deprecated
/docs/guides/auth/auth-helpers/nextjs by editing the four blog files listed
(apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdx,
apps/www/_blog/2023-08-10-using-supabase-with-vercel.mdx,
apps/www/_blog/2023-06-09-supabase-beta-update-may-2023.mdx,
apps/www/_blog/2022-11-02-supabase-beta-update-october-2022.mdx) and replace
each occurrence of /docs/guides/auth/auth-helpers/nextjs with
/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers so they point
directly to the migration guide instead of the removed Auth Helpers docs.
Reverts #41383
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.