Skip to content

Commit

Permalink
docs: add redirect config (#1909)
Browse files Browse the repository at this point in the history
Co-authored-by: Ori Pomerantz <[email protected]>
  • Loading branch information
alvrs and qbzzt authored Nov 13, 2023
1 parent 35a390f commit 562ae81
Showing 1 changed file with 146 additions and 1 deletion.
147 changes: 146 additions & 1 deletion next-docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,149 @@ const withNextra = nextra({
themeConfig: "./theme.config.tsx",
});

export default withNextra();
export default withNextra({
async redirects() {
return [
{
source: "/what-is-mud",
destination: "/introduction",
permanent: true,
},
{
source: "/quick-start",
destination: "/quickstart",
permanent: true,
},
{
source: "/store",
destination: "/store/introduction",
permanent: true
},
{
source: "/store/installation",
destination: "/store/introduction",
permanent: true
},
{
source: "/store/reading-and-writing",
destination: "/store/table-libraries#reading-data",
permanent: true
},
{
source: "/store/config",
destination: "/store/table-libraries#config",
permanent: true
},
{
source: "/store/advanced-features",
destination: "/store/introduction",
permanent: true
},
{
source: "/store/indexing",
destination: "/store/introduction",
permanent: true
},
{
source: "/store/spec",
destination: "/store/introduction",
permanent: true
},
{
source: "/store/gas-efficiency",
destination: "/store/introduction",
permanent: true
},
{
source: "/store/using-without-world",
destination: "/store/introduction",
permanent: true
},
{
source: "/store/internals",
destination: "/store/introduction",
permanent: true
},
{
source: "/world",
destination: "/world/introduction",
permanent: true
},
{
source: "/world/world-101",
destination: "/world/introduction",
permanent: true
},
{
source: "/world/config",
destination: "/cli/config",
permanent: true
},
{
source: "/world/deployer",
destination: "/cli/deploy",
permanent: true
},
{
source: "/world/subsystems",
destination: "/world/introduction",
permanent: true
},
{
source: "/world/community-computers",
destination: "/world/introduction",
permanent: true
},
{
source: "/world/querying",
destination: "/state-query/introduction",
permanent: true
},
{
source: "/world/internals",
destination: "/world/introduction",
permanent: true
},
{
source: "/client-side",
destination: "/state-query/typescript/recs",
permanent: true
},
{
source: "/indexer",
destination: "/services/indexer",
permanent: true
},
{
source: "/cli",
destination: "/cli/tablegen",
permanent: true
},
{
source: "/ecs",
destination: "/guides/emojimon/1-preface-the-ecs-model.mdx",
permanent: true
},
{
source: "/plugins",
destination: "/world/introduction",
permanent: true
},
{
source: "/tutorials",
destination: "/guides/hello-world",
permanent: true
},
{
source: "/tutorials/emojimon",
destination: "/guides/emojimon",
permanent: true
},
{
source: "/tutorials/emojimon/preface-the-ecs-model",
destination: "/guides/emojimon/1-preface-the-ecs-model.mdx",
permanent: true
},
];
},
});

0 comments on commit 562ae81

Please sign in to comment.