diff --git a/tasks/generate-redirects.ts b/tasks/generate-redirects.ts index dd8c8f4e..caaaead7 100644 --- a/tasks/generate-redirects.ts +++ b/tasks/generate-redirects.ts @@ -75,9 +75,9 @@ let rules: Rule[] = Object.values(versions).flatMap((artifact) => { if (artifact.version === "3.5.0") { list.push({ - from: `/${artifact.version}/`, - to: `/${artifact.cid}/`, - status: 302, + from: `/${artifact.version}/service-worker.js`, + to: `/${artifact.cid}/service-worker.js`, + status: 200, }); } @@ -87,12 +87,12 @@ let rules: Rule[] = Object.values(versions).flatMap((artifact) => { to: `/${artifact.cid}/`, status: 302, }, - { - from: `/${artifact.version}/`, - to: symlinks[`/${artifact.cid}/index.html`] ?? - `/${artifact.cid}/index.html`, - status: 200, - }, + // { + // from: `/${artifact.version}/`, + // to: symlinks[`/${artifact.cid}/index.html`] ?? + // `/${artifact.cid}/index.html`, + // status: 200, + // }, ); const filteredIndexes = Object.entries(indexes).filter(([from, _to]) => {