create redirects

This commit is contained in:
Philip Ahlqvist 2024-01-24 15:42:16 +01:00
parent c42f36988b
commit 94dc96c68e
2 changed files with 24 additions and 2 deletions

View file

@ -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,
});

View file

@ -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."
}
]
]
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"
}