mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 15:36:53 +02:00
- Add vercel.json with Vite framework settings - Configure SPA routing with rewrites - Set up asset caching headers - Add .vercelignore to exclude unnecessary files - Add VERCEL_SETUP.md with step-by-step setup instructions This enables automatic deploy previews for every PR once the repo is connected to Vercel.
34 lines
662 B
JSON
34 lines
662 B
JSON
{
|
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
|
"buildCommand": "npm run build",
|
|
"devCommand": "npm run dev",
|
|
"installCommand": "npm ci",
|
|
"framework": "vite",
|
|
"outputDirectory": "dist",
|
|
"cleanUrls": true,
|
|
"trailingSlash": false,
|
|
"rewrites": [
|
|
{
|
|
"source": "/(.*)",
|
|
"destination": "/index.html"
|
|
}
|
|
],
|
|
"headers": [
|
|
{
|
|
"source": "/assets/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000, immutable"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"github": {
|
|
"enabled": true,
|
|
"autoAlias": true,
|
|
"silent": false,
|
|
"autoJobCancelation": true
|
|
}
|
|
}
|