-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
106 lines (101 loc) · 2.83 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
cpus: 1,
},
async redirects() {
return [
{
source: '/courses/cs374-spring-2023',
destination: 'https://cs374-spring-2023.netlify.app',
permanent: true,
},
{
source: '/courses/cs374-spring-2021',
destination: 'https://cs374-spring-2021.netlify.app',
permanent: true,
},
{
source: '/courses/cs374-spring-2020',
destination: 'https://cs374-spring-2020.netlify.app',
permanent: true,
},
{
source: '/courses/cs374-spring-2019',
destination: 'https://cs374-spring-2019.netlify.app',
permanent: true,
},
{
source: '/courses/cs374-spring-2018',
destination: 'https://cs374-spring-2018.netlify.app',
permanent: true,
},
{
source: '/courses/cs374-spring-2017',
destination: 'https://cs374-spring-2017.netlify.app',
permanent: true,
},
{
source: '/courses/cs473-fall-2023',
destination: 'https://cs473-fall-2023.netlify.app',
permanent: true,
},
{
source: '/courses/cs473-fall-2021',
destination: 'https://cs473-fall-2021.netlify.app',
permanent: true,
},
{
source: '/courses/cs473-fall-2020',
destination: 'https://cs473-fall-2020.netlify.app',
permanent: true,
},
{
source: '/courses/cs473-fall-2019',
destination: 'https://cs473-fall-2019.netlify.app',
permanent: true,
},
{
source: '/courses/cs473-fall-2018',
destination: 'https://cs473-fall-2018.netlify.app',
permanent: true,
},
{
source: '/courses/cs473-fall-2017',
destination: 'https://cs492-fall-2017.netlify.app/', //social computing was cs492 back then
permanent: true,
},
{
source: '/courses/cs473-fall-2016',
destination: 'https://cs492-fall-2016.netlify.app', //social computing was cs492 back then
permanent: true,
},
{
source: '/courses/cs492-fall-2023',
destination: 'https://cs492-fall-2023.netlify.app',
permanent: true,
},
{
source: '/courses/cs492-spring-2021',
destination: 'https://human-ai.kixlab.org/',
permanent: true,
},
{
source: '/courses/cs492-fall-2020',
destination: 'https://cs492-fall-2020.netlify.app',
permanent: true,
},
{
source: '/courses/cs492d-spring-2020',
destination: 'https://cs492d-spring-2020.netlify.app/',
permanent: true,
},
{
source: '/courses/cs492c-fall-2018',
destination: 'https://i2r.netlify.app/',
permanent: true,
},
]
},
}
module.exports = nextConfig