aboutsummaryrefslogtreecommitdiffstats
path: root/next.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-13 18:23:35 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-13 18:25:39 +0100
commit295c9b4bb33bfc21f12715bb9cdaed2ca4d1dd4d (patch)
tree2003f9aa223c744d1e09bf2de60b1bb91c44dd69 /next.config.js
parent553225bac64f762ce0a9ac5094ce6e3348f88f41 (diff)
chore: add a redirection from /feed to /feed.xml
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/next.config.js b/next.config.js
index 25db587..59ca4f4 100644
--- a/next.config.js
+++ b/next.config.js
@@ -14,6 +14,14 @@ const nextConfig = {
},
poweredByHeader: false,
reactStrictMode: true,
+ async rewrites() {
+ return [
+ {
+ source: '/feed',
+ destination: '/feed.xml',
+ },
+ ];
+ },
sassOptions: {
includePaths: [
path.join(__dirname, 'styles'),