From b6c71a8525b015f7a5553236404ccdc5fd7edda0 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Sun, 8 Jan 2023 19:55:24 +0000 Subject: [PATCH] change latest URL from netlify proxy to redirect --- .netlify/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.netlify/build.sh b/.netlify/build.sh index 1b50c2b0..df619b51 100755 --- a/.netlify/build.sh +++ b/.netlify/build.sh @@ -20,8 +20,8 @@ mv pyo3-gh-pages netlify_build # than check this in to the repo cp .netlify/_redirects netlify_build/ -# Add latest redirect (proxy) -echo "/latest/* https://pyo3.github.io/pyo3/v${PYO3_VERSION}/:splat 200" >> netlify_build/_redirects +# Add latest redirect +echo "/latest/* /v${PYO3_VERSION}/:splat" >> netlify_build/_redirects ## Add landing page redirect if [ "${CONTEXT}" == "deploy-preview" ]; then