Skip to content

Commit 560bf2e

Browse files
gHashTagona-agent
andcommitted
fix: update vercel.json with rewrites for SPA routing
Co-authored-by: Ona <no-reply@ona.com>
1 parent 1decec9 commit 560bf2e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

vercel.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
3-
"buildCommand": "cd website && npm install && npm run build",
3+
"buildCommand": "cd website && npm run build",
44
"outputDirectory": "website/dist",
55
"installCommand": "cd website && npm install",
6-
"framework": "vite"
6+
"framework": "vite",
7+
"cleanUrls": true,
8+
"trailingSlash": false,
9+
"rewrites": [
10+
{
11+
"source": "/((?!assets|icons|favicon\\.ico|sw\\.js|manifest\\.json|vite\\.svg).*)",
12+
"destination": "/index.html"
13+
}
14+
]
715
}

0 commit comments

Comments
 (0)