Repository navigation
Retire the Netlify docs host with permanent redirects - #1136
Merged
Merged
Conversation
Stop building the Next.js app on Netlify so crawlers no longer render old pages, and send every path except robots.txt to https://docs.novu.co with a 301 and noindex. Co-authored-by: Dima Grossman <[email protected]>
✅ Deploy Preview for docs-novu ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
scopsy
marked this pull request as ready for review
October 13, 2026 11:34
The 301 responses retire the old URLs. The header only covers files this host still serves, such as robots.txt. Co-authored-by: Dima Grossman <[email protected]>
The dev server writes .netlify while checking redirects, and that directory should stay out of the repo. Co-authored-by: Dima Grossman <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This Netlify site is a retired copy of the docs. It still builds the Next.js app, so crawlers render old pages and drive function usage.
https://docs.novu.co, including the query string.NETLIFY_NEXT_PLUGIN_SKIP=trueso Netlify does not publish serverless or edge functions when it auto-detects Next.js./robots.txtcrawlable and omit a sitemap, so crawlers can observe the redirects without being handed the old URL list.X-Robots-Tag: noindex, nofollowon files this host still serves. Netlify does not attach custom headers to the 301 responses; those URLs are retired by the redirect itself.Test plan
netlify dev --offline, static framework) returns301tohttps://docs.novu.co/...for/,/platform/inbox?utm=crawler,/sitemap.xml, andPOST /api/example/robots.txtreturns200withAllow: /, no sitemap, andX-Robots-Tag: noindex, nofollow
Confidence Score: 5/5
The PR appears safe to merge with the redirect-header limitation accepted as intentional.Summary
The PR replaces the retired Netlify docs app with a static redirect site.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD Request[Request to retired Netlify host] --> Robots{Path is /robots.txt?} Robots -->|Yes| File[200: allow crawling, no sitemap] Robots -->|No| Redirect[301: same path on docs.novu.co]Reviews (2) · Last reviewed commit: "Ignore local Netlify CLI state." · Reviewed by Greptile