-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
68 lines (67 loc) · 1.5 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
async rewrites() {
return [
{
source: "/sitemap.xml",
destination: "/api/sitemap",
},
];
},
async redirects() {
return [
{
source: "/REL1001/:slug*",
destination: "/dokumenter/religion-og-etikk",
permanent: true,
},
{
source: "/REA3001/:slug*",
destination: "/dokumenter/biologi",
permanent: true,
},
{
source: "/IDR3005/:slug*",
destination: "/dokumenter/breddeidrett",
permanent: true,
},
{
source: "/REA3008/:slug*",
destination: "/dokumenter/geofag",
permanent: true,
},
{
source: "/GEO1001/:slug*",
destination: "/dokumenter/geografi",
permanent: true,
},
{
source: "/HIS1003/:slug*",
destination: "/dokumenter/historie",
permanent: true,
},
{
source: "/REA3005/:slug*",
destination: "/dokumenter/kjemi",
permanent: true,
},
{
source: "/SAM3005/:slug*",
destination: "/dokumenter/markedsføring-og-ledelse",
permanent: true,
},
{
source: "/NAT1002/:slug*",
destination: "/dokumenter/naturfag",
permanent: true,
},
{
source: "/NOR1211/:slug*",
destination: "/dokumenter/norsk",
permanent: true,
},
];
},
};
module.exports = nextConfig;