From 77b88c33069f433cc5cd9c1b0d308204158cf280 Mon Sep 17 00:00:00 2001 From: dharamveergit Date: Thu, 22 Aug 2024 23:58:36 +0530 Subject: [PATCH] fix : redirects --- astro.config.mjs | 13 ++----------- src/utils/redirects.ts | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 src/utils/redirects.ts diff --git a/astro.config.mjs b/astro.config.mjs index 7ea01b5b..1b768bcc 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,23 +6,14 @@ import astroExpressiveCode from "astro-expressive-code"; import { defineConfig } from "astro/config"; import remark from "remark-directive"; import { customAsidePlugin } from "./src/lib/aside/customAsidePlugin"; +import { redirects } from "./src/utils/redirects"; // https://astro.build/config export default defineConfig({ // experimental: { // contentCollectionCache: true, // }, - redirects: { - "/ecosystem": "/ecosystem/akash-tools/latest/", - "/development": "/development/welcome/overview/", - "/community": "/community/akash-insiders/", - "/about": "/about/general-information/", - "/about/pricing": "/about/pricing/compare", - "/blog/a/acc-akash-accelerationism": "/blog/a-acc-akash-accelerationism/", - - "/roadmap": - "https://github.com/orgs/akash-network/projects/5/views/1?layout=roadmap", - }, + redirects: redirects, markdown: { // shikiConfig: { // theme: theme, diff --git a/src/utils/redirects.ts b/src/utils/redirects.ts new file mode 100644 index 00000000..14f1017d --- /dev/null +++ b/src/utils/redirects.ts @@ -0,0 +1,18 @@ +export const redirects = { + "/ecosystem": "/ecosystem/akash-tools/latest/", + "/development": "/development/welcome/overview/", + "/community": "/community/akash-insiders/", + "/about": "/about/general-information/", + "/about/pricing": "/about/pricing/compare", + "/blog/a/acc-akash-accelerationism": "/blog/a-acc-akash-accelerationism/", + + "/roadmap": + "https://github.com/orgs/akash-network/projects/5/views/1?layout=roadmap", + "/careers": "/", + "/whitepapers": + "https://ipfs.io/ipfs/QmVwsi5kTrg7UcUEGi5UfdheVLBWoHjze2pHy4tLqYvLYv", + "/l/econ-paper": + "https://ipfs.io/ipfs/QmdV52bF7j4utynJ6L11RgG93FuJiUmBH1i7pRD6NjUt6B", + "/docs/features/ip-leases": "/docs/network-features/ip-leases/", + "/testnet": "/docs/testnet/gpu-testnet-client-instructions/", +};