Skip to content

Commit

Permalink
Update next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-rashid committed Nov 18, 2024
1 parent 06ee0e5 commit 8b94594
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@
const nextConfig = {
trailingSlash: true,
async rewrites() {
return [
return [
{
source: "/articles/:path*/",
destination: "https://articles.gcsedoctor.co.uk/:path*/",
},
{
source: "/articles/:path*",
destination: "https://articles.gcsedoctor.co.uk/:path*",
}
},
];
},
async headers() {
return [
{
source: "/articles/:path*",
headers: [{ key: "x-forwarded-host", value: "gcsedoctor.co.uk" }],
}
headers: [
{ key: "x-forwarded-host", value: "gcsedoctor.co.uk" },
],
},
];
}
}
},
};

module.exports = nextConfig;

0 comments on commit 8b94594

Please sign in to comment.