Skip to content

Commit

Permalink
chore: Add redirects to docs nextconfig (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
markflorkowski authored May 31, 2024
1 parent 3f3fa57 commit bf278b1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,35 @@ const withNextra = nextra({
flexsearch: {
codeblock: false,
},
async redirects() {
return [
{
source: "/getting-started",
destination: "/getting-started/appdir",
permanent: true,
},
{
source: "/nextjs/appdir",
destination: "/getting-started/appdir",
permanent: true,
},
{
source: "/nextjs/pagedir",
destination: "/getting-started/pagedir",
permanent: true,
},
{
source: "/solid",
destination: "/getting-started/solid",
permanent: true,
},
{
source: "/solidstart/server",
destination: "/getting-started/solid",
permanent: true,
},
];
},
});

export default withNextra({
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal-solidstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

## Further reference

Check out the docs at: https://docs.uploadthing.com/solid
Check out the docs at: https://docs.uploadthing.com/getting-started/solid

0 comments on commit bf278b1

Please sign in to comment.