From 8b945949aca7b5db40d9206be6dc72568e47fe54 Mon Sep 17 00:00:00 2001 From: Hamza Rashid Date: Mon, 18 Nov 2024 23:19:54 +0000 Subject: [PATCH] Update next.config.js --- next.config.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/next.config.js b/next.config.js index 4710781..995c5f5 100644 --- a/next.config.js +++ b/next.config.js @@ -2,7 +2,7 @@ const nextConfig = { trailingSlash: true, async rewrites() { - return [ + return [ { source: "/articles/:path*/", destination: "https://articles.gcsedoctor.co.uk/:path*/", @@ -10,18 +10,20 @@ const nextConfig = { { 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; \ No newline at end of file