Skip to content

Commit d3591f8

Browse files
committed
Add rewrite rule
1 parent 0ab6cf2 commit d3591f8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

next.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,18 @@ const nextConfig = {
476476
{ source: "/discord", destination: "https://discord.gg/7NF8GNe", permanent: false },
477477
];
478478
},
479+
async rewrites() {
480+
return ["plus-assets"].flatMap((path) => [
481+
{
482+
source: `/${path}`,
483+
destination: `https://tailwindui.com/${path}`,
484+
},
485+
{
486+
source: `/${path}/:path*`,
487+
destination: `https://tailwindui.com/${path}/:path*`,
488+
},
489+
]);
490+
},
479491
} satisfies NextConfig;
480492

481493
const withMDX = require("@next/mdx")();

0 commit comments

Comments
 (0)