Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Add support for a custom _redirects file #21

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

etrepum
Copy link
Contributor

@etrepum etrepum commented Jun 19, 2020

Since _redirects always takes precedence over netlify.toml,
allowing a custom _redirects file to be prepended to the
published one is the only way to force a redirect of a path that
matches content handled by next-on-netlify. This can be
useful when using netlify to redirect from one domain to another.

Since _redirects always takes precedence over netlify.toml,
allowing a custom _redirects file to be prepended to the
published one is the only way to force a redirect of a path that
matches content handled by next-on-netlify. This can be
useful when using netlify to redirect from one domain to another.
@FinnWoelm FinnWoelm merged commit a6dd7fa into netlify:master Jun 22, 2020
FinnWoelm added a commit that referenced this pull request Jun 22, 2020
- Add support for defining custom redirects in a `_redirects` file at
  the project root directory. Unlike redirects specified in your
  `netlify.toml` file, the redirects from the `_redirects` file take
  precedence over those generated by `next-on-netlify`
  ([#21](#21))
@FinnWoelm
Copy link
Contributor

This is awesome! Thank you, @etrepum, for another fantastic contribution! It's really great to have you improve next-on-netlify so much. I just merged and released v2.2.0! 🚀

@etrepum
Copy link
Contributor Author

etrepum commented Jun 23, 2020

Happy to help! Your project saved me a lot of time in figuring out how to make things work in such a seamless way. The hardest part is figuring out how to match the style, I'm accustomed to automatic formatting with prettier these days :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants