-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
39 lines (37 loc) · 1.02 KB
/
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
32
33
34
35
36
37
38
39
const { withContentlayer } = require("next-contentlayer");
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
typedRoutes: true,
scrollRestoration: true,
},
redirects: async () => {
return [
// Abwärtskompatibilität für alte Links zu den Projekten
{
source: "/projects/:path*",
destination: "/referenzen/:path*",
permanent: true,
},
// Abwärtskompatibilität für alte Links älterer Versionen der Website
{
source: "/appentwicklung",
destination: "/leistungen/mobile-apps",
permanent: true,
},
// Abwärtskompatibilität für alte Links älterer Versionen der Website
{
source: "/webentwicklung",
destination: "leistungen/webanwendungen",
permanent: true,
},
// Vermeidung einer 404-Seite
{
source: "/leistungen",
destination: "/#leistungen",
permanent: true,
},
];
},
};
module.exports = withContentlayer(nextConfig);