Skip to content

Commit ead2a36

Browse files
committed
Add rewrites for blog routes
1 parent 9740cce commit ead2a36

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lazyweb-landing-page/next.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ const nextConfig = {
1414
images: {
1515
domains: ['api.lazyweb.rocks', 'via.placeholder.com', 'pub-e97d1a56502c4db6aa9b54e745ce2298.r2.dev'],
1616
},
17+
async rewrites() {
18+
return [
19+
{
20+
source: "/blog",
21+
destination: "https://lazyweb-blogs-gygcdy0fk-lazywebs-projects.vercel.app/blog",
22+
},
23+
{
24+
source: "/blog/:path*",
25+
destination: "https://lazyweb-blogs-gygcdy0fk-lazywebs-projects.vercel.app/blog/:path*",
26+
},
27+
];
28+
},
1729
}
1830

1931
module.exports = nextConfig

0 commit comments

Comments
 (0)