/
vercel.json
108 lines (108 loc) · 2.55 KB
/
vercel.json
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
107
108
{
"framework": "hugo",
"cleanUrls": true,
"trailingSlash": true,
"buildCommand": "hugo --gc --baseURL https://${SITE_URL:-VERCEL_URL}",
"devCommand": "hugo server -D -w -p $PORT",
"github": {
"autoJobCancelation": true
},
"headers": [
{
"source": "/(.*\\.pdf)",
"headers": [
{
"key": "Content-Type",
"value": "application/pdf"
}
]
},
{
"source": "/(.*\\.webp)",
"headers": [
{
"key": "Content-Type",
"value": "image/webp"
}
]
},
{
"source": "/(.*\\.jpg)",
"headers": [
{
"key": "Content-Type",
"value": "image/jpeg"
}
]
},
{
"source": "/(.*\\.jpeg)",
"headers": [
{
"key": "Content-Type",
"value": "image/jpeg"
}
]
},
{
"source": "/(.*\\.css)",
"headers": [
{
"key": "Content-Type",
"value": "text/css; charset=utf-8"
}
]
},
{
"source": "/(.*\\.ico)",
"headers": [
{
"key": "Content-Type",
"value": "image/x-icon"
}
]
},
{
"source": "/(.*\\.html)",
"headers": [
{
"key": "Content-Security-Policy",
"value": "default-src 'none'; style-src 'unsafe-inline' 'self'; img-src 'self' https:; media-src 'self' https:; frame-ancestors 'none'; base-uri 'self'; form-action 'none'"
}
]
},
{
"source": "/(.*)",
"headers": [
{
"key": "Permissions-Policy",
"value": "accelerometer=(), autoplay=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), xr-spatial-tracking=()"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "Vary",
"value": "Origin"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
},
{
"key": "Cross-Origin-Embedder-Policy",
"value": "require-corp"
},
{
"key": "Cross-Origin-Resource-Policy",
"value": "same-origin"
}
]
}
]
}