-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
54 lines (50 loc) · 1.07 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
import "./src/env.js";
const headers = async () => {
return [
{
source: "/(.*)",
headers: [
{
key: "X-Content-Type-Options",
value: "nosniff",
},
{
key: "X-Frame-Options",
value: "SAMEORIGIN",
},
{
key: "X-XSS-Protection",
value: "1; mode=block",
},
],
},
];
};
const redirects = async () => {
return [
{
source: '/hakenkreuz',
destination: 'https://medium.com/msackiit/2022-and-thats-a-wrap-393def75a4f0',
permanent: true,
},
{
source: '/johncena',
destination: 'https://drive.google.com/file/d/1CwD5SABZWwF21IbX8LuCYloP90yuvU6L/view?usp=sharing',
permanent: true,
},
{
source: '/youcantseeme',
destination: 'https://drive.google.com/file/d/1lin1s-YRuCQ28x7rI9zQbJUDU5WprHrC/view?usp=sharing',
permanent: true,
},
];
};
const config = {
async headers() {
return await headers();
},
async redirects() {
return await redirects();
},
};
export default config;