-
Notifications
You must be signed in to change notification settings - Fork 12
/
vercel.json
31 lines (31 loc) · 918 Bytes
/
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
{
"buildCommand": "API_MODE=msw npm run build && cp mockServiceWorker.js dist/ && npx patch-package --reverse",
"outputDirectory": "dist",
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "content-security-policy",
"value": "default-src 'self'; style-src 'unsafe-inline' 'self'; frame-src 'none'; object-src 'none'; form-action 'none'; frame-ancestors 'none'"
},
{ "key": "x-content-type-options", "value": "nosniff" },
{ "key": "x-frame-options", "value": "DENY" }
]
}
],
"rewrites": [
{
"source": "/viewscript.js",
"destination": "https://trck.oxide.computer/js/plausible.js"
},
{
"source": "/api/event",
"destination": "https://trck.oxide.computer/api/event"
},
{
"source": "/:path((?!assets/|mockServiceWorker\\.js$).*)",
"destination": "/index.html"
}
]
}