diff --git a/astro.config.mjs b/astro.config.mjs index 0baf00a..265352f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,6 +1,7 @@ import { defineConfig } from 'astro/config'; import codeblocks from "@thewebforge/astro-code-blocks"; import preload from "astro-preload"; +import * as config from './src/config.js'; import mdx from "@astrojs/mdx"; @@ -11,5 +12,6 @@ export default defineConfig({ // Copy Button Options copyButtonTitle: 'Copy', copyButtonTooltip: 'Copied to clipboard', -}), mdx()] + }), mdx()], + redirects: config.REDIRECTS, }); \ No newline at end of file diff --git a/src/config.js b/src/config.js index ce13e63..033205e 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,7 @@ export const AWESOME_LBRY = "https://github.com/LBRYFoundation/Awesome-LBRY"; export const EDIT_PAGE = "Edit this page"; export const REPOSITORY = "LBRYFoundation/lbry-tech"; +export const GITHUB_ORG = "LBRYFoundation"; export const features = [ { @@ -68,4 +69,23 @@ export const featured = [ title: "Podcatcher", description: "Audio media crawler for lbry." } -] \ No newline at end of file +] + +export const REDIRECTS = { + "/api/blockchain": "/api/lbrycrd", + "/api/lbry": "/api/sdk", + "/api/protocol": "/api/sdk", + "/play": "/playground", + "/repository-standards": "/resources/repository-standards", + "/resources/lbry-claimtrie": "/spec#claimtrie", + "/resources/schema": "/spec#metadata", + "/resources/signing-claim": "/resources/claim-signing", + "/resources/uri": "/spec#urls", + "/resources/video-lbryandroid": "https://odysee.com/video-2018-10-15053403:e", + "/resources/video-lbrycrd": "https://odysee.com/intro-to-LBRYcrd:5", + "/resources/video-lbrydesktop": "https://odysee.com/LBRYAppDesign:7", + "/resources/video-lbrysdk": "https://odysee.com/@lbrytech:1/lbrynet-dev-setup:9", + "/specification": "/spec", + "/tour": "/playground", + "/whitepaper": "/spec" +} \ No newline at end of file