-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
71 lines (69 loc) · 1.88 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
module.exports = {
async redirects() {
return [
{
source: '/tutorform',
destination:
'https://docs.google.com/forms/d/e/1FAIpQLSeAxKDaI5DbgiyHv-io6OB5rzIi2oLWXmjQTVClE9ZHO9RwKA/viewform',
permanent: true
},
{
source: '/learncs',
destination: 'https://forms.gle/YRHUBBcF3CTTxttn7',
permanent: true
},
{
source: '/tuteeform',
destination:
'https://docs.google.com/forms/d/e/1FAIpQLScY-XHARen4wTGYQXL68uvUtJsz6BeDi7XyWkt23OZQS6XJMQ/viewform',
permanent: true
},
{
source: '/programs',
destination: '/#programs',
permanent: true
},
{
source: '/volunteer',
destination: '/#volunteer',
permanent: true
},
{
source: '/donate',
destination: 'https://donorbox.org/project-envision',
permanent: true
},
{
source: '/discord',
destination: 'https://discord.gg/Gu5Q5PUNj2',
permanent: true
},
{
source: '/s&dcamp',
destination:
'https://docs.google.com/forms/d/e/1FAIpQLSciawW4EE1vrG_IRr4kHXbvju9csHCOGIngy7rdARqGu77KJg/viewform?usp=sf_link',
permanent: true
},
{
source: '/cloudcomputingcamp',
destination:
'https://docs.google.com/forms/d/e/1FAIpQLSeuki5lC-ZJD2BnBXHHO530AZ9qMfWCjT09bZrGJaGH7E5J_w/viewform?usp=sf_link',
permanent: true
}
];
},
webpack: (config, { dev, isServer }) => {
if (isServer) {
require('./scripts/generate-sitemap');
}
// Replace React with Preact only in client production build
if (!dev && !isServer) {
Object.assign(config.resolve.alias, {
react: 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react-dom': 'preact/compat'
});
}
return config;
}
};