We use a netlify.toml
file at the root of the project.
See the Netlify documentation for more details about the how to configure the redirects.
Antora is configured to generate a Netlify _redirects
file to manage aliases. The file is generated in build/site
.
See Antora and
Netlify documentation for more details.
Be aware of the Netlify rule processing order for rules
declared in _redirects
and netlify.toml
.
Testing can be done locally thanks to the dev server provided by the Netlify CLI.
It is able to use the netlify.toml
used in production and
More details about redirects handling in the Netlify documentation.
-
Build a preview with the components and versions needed for the test. See README.
Add the--type netlify
parameter to use the configuration for the whole Netlify environment. -
Start the http dev server (see README)
-
In the console, you can see the redirect configuration currently used.
-
Any changes in the Netlify redirects configuration is taken into account right away by the server, so the feedback loop is intended to be very short
|
If your redirect returns |