2874: netlify: fix root redirect r=messense a=davidhewitt

See https://github.com/PyO3/pyo3/pull/2871#issuecomment-1378074972

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
This commit is contained in:
bors[bot] 2023-01-11 03:58:50 +00:00 committed by GitHub
commit 3fc0634ee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ echo "/latest/* /v${PYO3_VERSION}/:splat" >> netlify_build/_redirects
if [ "${CONTEXT}" == "deploy-preview" ]; then
echo "/ /main/" >> netlify_build/_redirects
else
echo "/ /v${PYO3_VERSION}/>" >> netlify_build/_redirects
echo "/ /v${PYO3_VERSION}/" >> netlify_build/_redirects
fi
## Generate towncrier release notes