From 9c6265b33a7bb31936e3c9d6dcf415e11a6db752 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 30 Nov 2023 12:27:06 +0100 Subject: fix(pages): redirect /feed to /feed.xml I don't know when it happens but the rewrites was no longer working. Also it is more a redirect than a rewrite so I switch the setting key and set "permanent" to true. --- next.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js index 6e404a5..82f4fe4 100644 --- a/next.config.js +++ b/next.config.js @@ -108,11 +108,12 @@ const nextConfig = { output: 'standalone', poweredByHeader: false, reactStrictMode: true, - rewrites() { + redirects() { return [ { source: '/feed', destination: '/feed.xml', + permanent: true, }, ]; }, -- cgit v1.2.3