You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 20, 2022. It is now read-only.
The short answer is: this is unfortunately not easy to do at the moment.
A longer answer: this library is only concerned with loading and normalizing redirect rules, not applying them to URLs. Internally, Netlify uses another library for it: netlify-redirector. This is for example what we use in Netlify CLI (link to code). Unfortunately, that library is currently undocumented (and hasn't been updated in 3 years).
How can I read in redirect rules in node, and then apply those rules to a URL to see what URL it will be redirected to?
The text was updated successfully, but these errors were encountered: