-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
31 lines (31 loc) · 884 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** @type {import('next').NextConfig} */
module.exports = {
async redirects() {
return [
{
// Redirect all all reauest to /refs/** to Exocortex
source: "/refs/:path*",
destination: "https://exocortex.sehn.dev/refs/:path*",
permanent: true,
},
{
// Redirect all all reauest to /zettel/** to Exocortex
source: "/zettel/:path*",
destination: "https://exocortex.sehn.dev/concepts/:path*",
permanent: true,
},
// Redirect all request to /tag/** to Exocortex
{
source: "/tag/:path*",
destination: "https://exocortex.sehn.dev/tags/:path*",
permanent: true,
},
// Redirect sitemap.xml to Exocortex
{
source: "/sitemap.xml",
destination: "https://exocortex.sehn.dev/sitemap.xml",
permanent: true,
},
];
},
};