From e07b31aacd0feb3a367193cae804b582b1fbba66 Mon Sep 17 00:00:00 2001 From: mashehu Date: Thu, 13 Jul 2023 11:37:53 +0200 Subject: [PATCH] check if version redirect breaks aws results --- src/pages/[pipeline]/[...path].astro | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/pages/[pipeline]/[...path].astro diff --git a/src/pages/[pipeline]/[...path].astro b/src/pages/[pipeline]/[...path].astro deleted file mode 100644 index e3ef0b2f4a..0000000000 --- a/src/pages/[pipeline]/[...path].astro +++ /dev/null @@ -1,27 +0,0 @@ ---- -import pipelines_json from '@public/pipelines.json'; - -export function getStaticPaths() { - var staticPaths: { params: { pipeline: string; path: string }; props: { latestRelease: string } }[] = []; - const subPaths = ['docs/usage', 'docs/output', 'results', 'parameters']; - pipelines_json.remote_workflows.forEach((pipeline) => { - subPaths.forEach((subpath) => { - staticPaths.push({ - params: { - pipeline: pipeline.name, - path: subpath, - }, - props: { - latestRelease: pipeline.releases[0].tag_name, - }, - }); - }); - }); - return staticPaths; -} - -const { pipeline, path } = Astro.params; -const { latestRelease } = Astro.props; -console.log('redirecting to latest release', latestRelease); -return Astro.redirect(`/${pipeline}/${latestRelease}/${path}`); ----