diff --git a/src/pages/[section]/[destination].astro b/src/pages/[section]/[destination].astro index 18b0083..8b0ce87 100644 --- a/src/pages/[section]/[destination].astro +++ b/src/pages/[section]/[destination].astro @@ -17,14 +17,16 @@ export const getStaticPaths = (() => { let staticParams: ParamsPath[] = []; sections.forEach((name) => { data.destinations.forEach((destination) => { - if(destination.name !== "titan" && name !== "technology") { - staticParams.push({params: { + staticParams.push({ + params: { section: name, destination: destination.name.toLowerCase() - }}) - } - }) - }) + } + }) + }); + }); + const unavailableRouteIndex = staticParams.findIndex((item) => item.params.section === "technology" && item.params.destination === "titan"); + staticParams.splice(unavailableRouteIndex, 1) return staticParams; }) satisfies GetStaticPaths; diff --git a/src/pages/index.astro b/src/pages/index.astro index 6de89fa..531dd87 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -6,7 +6,7 @@ import { ExploreButton } from "@components/ExploreButton";