Main Netlify site name: velvety-vacherin-4193fb
Main site URL: https://ameliorate.app/
Docs Netlify site name: ameliorate-docs
Docs site URL: Introduction | Ameliorate
I have my main site set up to proxy my /docs pages to my separate docs site (both deployed via netlify). This worked when I initially set it up, but now it seems that it only works when I go directly to a non-root redirected page.
Specifically, Introduction | Ameliorate now infinitely redirects when redirecting to Introduction | Ameliorate, but a non-root page e.g. Getting Started | Ameliorate still properly redirects to Getting Started | Ameliorate.
I’m suspecting the Nextjs v5 runtime because I’ve run netlify dev
locally with the v4.41.3 runtime, observed that the redirect does not infinitely redirect, then manually set to use the v5.1.2 runtime, and reproduced the infinite redirect.
These are my settings in main site’s netlify.toml (as set up by following this Support Guide):
[[redirects]]
from = "/docs/*"
to = "https://ameliorate-docs.netlify.app/docs/:splat"
status = 200
and my docs site just has an empty netlify.toml so that it doesn’t inherit the same redirects as the parent site (they’re in the same repo, and the main site’s netlify.toml is in the repo root).
I’ve also confirmed that the latest deploy log says the v5 runtime is being used, as well as the above redirect config: Netlify App.
Any ideas what might be wrong?