aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-30 12:27:06 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-30 12:27:06 +0100
commit9c6265b33a7bb31936e3c9d6dcf415e11a6db752 (patch)
tree2d8e5bbeb080d00cde364542eb7e5995146d52df
parent86d70a6343b6d8ed2a1dbeadec10348de87fcf49 (diff)
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.
-rw-r--r--next.config.js3
1 files changed, 2 insertions, 1 deletions
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,
},
];
},