Skip to content

Commit

Permalink
feat: add headless hashnode rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
BolajiAyodeji committed Feb 1, 2024
1 parent 9aaf4f9 commit 3847284
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ const nextConfig = {
BUILD_CMS: process.env.BUILD_CMS,
CL_CLIENT_ID: process.env.CL_CLIENT_ID,
CL_ENDPOINT: process.env.CL_ENDPOINT
},
async rewrites() {
return [
{
source: "/blog",
destination: "https://hh-store.vercel.app/blog"
},
{
source: "/blog/:path*",
destination: "https://hh-store.vercel.app/blog/:path*"
}
];
}
};

Expand Down

0 comments on commit 3847284

Please sign in to comment.