Skip to content

Commit 41b285b

Browse files
authored
feat(deploy): add vercel.json - Vite SPA config + security headers (#222)
Signed-off-by: Igor <romanchaa997@gmail.com>
1 parent 8cf230c commit 41b285b

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

vercel.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": 2,
3+
"buildCommand": "pnpm install --no-frozen-lockfile && pnpm run build",
4+
"outputDirectory": "dist",
5+
"installCommand": "pnpm install --no-frozen-lockfile",
6+
"framework": "vite",
7+
"git": {
8+
"deploymentEnabled": {
9+
"main": true
10+
}
11+
},
12+
"rewrites": [
13+
{ "source": "/(.*)", "destination": "/index.html" }
14+
],
15+
"headers": [
16+
{
17+
"source": "/(.*)",
18+
"headers": [
19+
{ "key": "X-Frame-Options", "value": "DENY" },
20+
{ "key": "X-Content-Type-Options", "value": "nosniff" },
21+
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" },
22+
{ "key": "Strict-Transport-Security", "value": "max-age=31536000; includeSubDomains; preload" },
23+
{ "key": "Permissions-Policy", "value": "camera=(), microphone=(), geolocation=()" }
24+
]
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)