Skip to content

Commit c0a03a1

Browse files
committed
feat: add redirect for /git to GitHub URL
1 parent fcd0f37 commit c0a03a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/website/next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import type { NextConfig } from "next";
2+
3+
import { globals } from "@/globals";
24
import { withContentCollections } from "@content-collections/next";
35

46
const nextConfig: NextConfig = {
@@ -27,6 +29,11 @@ const nextConfig: NextConfig = {
2729
destination: "/docs/react/blocks/inline-code",
2830
permanent: true,
2931
},
32+
{
33+
source: "/git",
34+
destination: globals.githubUrl,
35+
permanent: true,
36+
},
3037
];
3138
},
3239
};

0 commit comments

Comments
 (0)