-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
75 lines (74 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
72
73
74
75
/** @type {import("next").NextConfig} */
const nextConfig = {
pageExtensions: ["js", "jsx", "md", "mdx"],
trailingSlash: false,
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "Content-Security-Policy",
value: process.env.NODE_ENV === "development" ? "default-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.google.com/" : "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self'; child-src 'none'; object-src 'none'; img-src 'self' blob: data:; frame-src https://*.google.com/;",
},
],
},
];
},
async redirects() {
return [
{
source: "/about-us-1",
destination: "/about-us",
permanent: true,
},
{
source: "/blank",
destination: "/archive/experiments",
permanent: true,
},
{
source: "/sis-archive",
destination: "/archive/experiments",
permanent: true,
},
{
source: "/support",
destination: "/supporters",
permanent: true,
},
{
source: "/founders-%26-past-leaders",
destination: "/leadership/past-leaders",
permanent: true,
},
{
source: "/cybersis",
destination: "/initiatives/cybersis",
permanent: true,
},
{
source: "/our-initiatives",
destination: "/initiatives",
permanent: true,
},
{
source: "/our-leadership",
destination: "/leadership",
permanent: true,
},
{
source: "/our-founders",
destination: "/leadership/past-leaders",
permanent: true,
},
{
source: "/our-support",
destination: "/supporters",
permanent: true,
},
];
},
reactStrictMode: true,
};
module.exports = nextConfig;