Along with this PR, the DNS zone has to be updated to make the domain fr.openfisca.org point to Netlify, and actually use the _redirects config file.
More context: the _redirects file was present in the source code repository but wasn't actually used, because the DNS zone configured the domain fr.openfisca.org to point to the server, which reverse-proxies the Netlify website on site.fr.openfisca.org, and reverse-proxies also /legislation on localhost:2030. So Netlify did not actually received the https://fr.openfisca.org/legislation requests.
Related to https://github.com/openfisca/openfisca-ops/pull/95 and https://github.com/openfisca/legislation-explorer/pull/231
The API and the Legislation Explorer for OpenFisca-France have been migrated to a new server.
This PR updates the Netlify settings to:
/api
to the new domainapi.fr.openfisca.org
(to ensure backward compatibility with the legacy URLhttps://fr.openfisca.org/api
/legislation
tolegislation.fr.openfisca.org
A proof of concept has been made with a test project which is deployed to
optimistic-turing-350a61.netlify.app
:legislation.fr.openfisca.org
is not yet ready)Along with this PR, the DNS zone has to be updated to make the domain
fr.openfisca.org
point to Netlify, and actually use the_redirects
config file.More context: the
_redirects
file was present in the source code repository but wasn't actually used, because the DNS zone configured the domainfr.openfisca.org
to point to the server, which reverse-proxies the Netlify website onsite.fr.openfisca.org
, and reverse-proxies also/legislation
onlocalhost:2030
. So Netlify did not actually received thehttps://fr.openfisca.org/legislation
requests.