Skip to content

Drop the interim Netlify redirects for Hub paths - #252

Open
lancepioch wants to merge 1 commit into
mainfrom
chore/drop-interim-redirects
Open

lancepioch wants to merge 1 commit into
mainfrom
chore/drop-interim-redirects

Conversation

@lancepioch

@lancepioch lancepioch commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

pelican.dev now points at the Hub (cut over on 2026-12-04), so the INTERIM block in netlify.toml that sent /plugins, /plugins/* and /sponsor elsewhere while Netlify served the whole domain no longer does anything for production. Removing it keeps Netlify's PR previews from sending reviewers to hub.pelican.dev.

Nothing else changes: the Hub's /docs redirects come from the /docs entries in this file (scripts/pack-docs.mjs), and none of the removed rules were under /docs.

Note

Remove interim Netlify redirects for /plugins and /sponsor paths

Deletes the forced 302 redirects from /plugins and /plugins/* to the Hub, and from /sponsor to /support/, from netlify.toml. These were interim redirects that are no longer needed.

📊 Macroscope summarized d7e0360. 1 file reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted

🗂️ Filtered Issues

Summary by CodeRabbit

  • Updates
    • Removed automatic redirects from /plugins, /plugins/*, and /sponsor. These paths no longer automatically send visitors to corresponding Hub plugin pages or the support page.

@netlify

netlify Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pelica ready!

Name Link
🔨 Latest commit d7e0360
🔍 Latest deploy log https://app.netlify.com/projects/pelica/deploys/6b130e9cd6e8f59581456d38
😎 Deploy Preview https://deploy-preview-252--pelica.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Netlify configuration no longer includes interim forced 302 redirects for /plugins, /plugins/*, or /sponsor.

Changes: Redirect configuration

Layer / File(s) Summary
Remove interim redirects
netlify.toml
Removed the forced 302 redirects from /plugins and /plugins/* to Hub plugin paths, and from /sponsor to /support/.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: alexevladgabriel

Merge Risk: Minimal · up to d7e03

This removes temporary redirects that were sending Netlify preview reviewers to the Hub. No merge-blocking risk is evident, and reverting the change is trivial.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: removing the interim Netlify redirects for Hub paths. The raw summary confirms netlify.toml lost 21 lines, including the /plugins, /plugins/*, and /sponsor redirects.…
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.
Full details: Title check

Explanation

The title states the main change: removing the interim Netlify redirects for Hub paths. The raw summary confirms netlify.toml lost 21 lines, including the /plugins, /plugins/*, and /sponsor redirects. The objectives say the removed rules were the INTERIM block and that the /docs redirects remain. The title is specific and matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

I’m a rabbit; redirects are gone,
Plugin paths now hop on alone.
The sponsor route takes a new turn,
No more 302s for me to discern.
I twitch my nose and nibble the lawn.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a9d1b934-11b1-4501-b809-a21cbce971cf
Commits

Reviewing files that changed from the base of the PR and between a665f9b and d7e0360.

Files selected for processing: 1

  • netlify.toml
Files with no reviewable changes: 1

  • netlify.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details

Context from checks skipped due to timeout: 6

  • GitHub Check: Macroscope - Approvability Check
  • GitHub Check: Macroscope - Correctness Check
  • GitHub Check: Redirect rules
  • GitHub Check: Header rules
  • GitHub Check: Pages changed
  • GitHub Check: Build

Comment thread netlify.toml
status = 302
force = true

# ---- Short links (were client-side redirects on Docusaurus) --------------

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium netlify.toml:58

In Netlify previews, clicking the /plugins or /sponsor navigation item now reaches a not-found page. ui/nav.json still links to these same-origin paths, but the exported site has no /plugins route and support lives at /support; production Hub routing does not apply to preview hostnames. Restore preview-safe redirects for these paths.

+[[redirects]]
+  from = "/plugins"
+  to = "https://hub.pelican.dev/plugins"
+  status = 302
+  force = true
+
+[[redirects]]
+  from = "/plugins/*"
+  to = "https://hub.pelican.dev/plugins/:splat"
+  status = 302
+  force = true
+
+[[redirects]]
+  from = "/sponsor"
+  to = "/support/"
+  status = 302
+  force = true
+
 # ---- Short links (were client-side redirects on Docusaurus) --------------
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @netlify.toml around line 58:

In Netlify previews, clicking the `/plugins` or `/sponsor` navigation item now reaches a not-found page. `ui/nav.json` still links to these same-origin paths, but the exported site has no `/plugins` route and support lives at `/support`; production Hub routing does not apply to preview hostnames. Restore preview-safe redirects for these paths.

Evidence trail:
Commit d7e0360: `netlify.toml:58-81, 219-227`; `ui/nav.json:3-7, 13-17, 31-33`; `next.config.mjs:8-18`; `app/(landing)/[slug]/page.tsx:11, 35-38, 71-73`; `app/(landing)/support/page.tsx:13-19`; `router/README.md:74-82`.

@macroscopeapp

macroscopeapp Bot commented Dec 4, 2026

Copy link
Copy Markdown

Approvability

Verdict: Would Approve

Macroscope's review found this PR approvable — Removes interim Netlify redirects that are excluded from the production Hub's docs package. The reported preview-navigation regression remains covered by the independent Medium-severity correctness gate.

Needs human approval because:

  • 1 blocking correctness issue found at or above your repo's Minimum Blocking Severity

Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more.

This branch has not been deployed

No deployments
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.

1 participant