Skip to content

Commit e7f3eae

Browse files
Sam Sahbaei Razaviclaude
andcommitted
chore: Vercel deployment config for React SPA
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8306282 commit e7f3eae

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎vercel.json‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"buildCommand": "cd client && npm install && npm run build",
3+
"outputDirectory": "client/dist",
4+
"framework": null,
5+
"rewrites": [
6+
{ "source": "/((?!assets/).*)", "destination": "/index.html" }
7+
],
8+
"headers": [
9+
{
10+
"source": "/assets/(.*)",
11+
"headers": [
12+
{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }
13+
]
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)