Create vercel.json

This commit is contained in:
Nate Kelley 2025-09-22 16:04:31 -06:00
parent bbcd0db69a
commit cbf4b04e71
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 90 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export const useAppVersion = () => {
useWindowFocus(() => {
refetch().then(() => {
if (isChanged) {
reloadWindow();
// reloadWindow();
}
});
});

89
apps/web/vercel.json Normal file
View File

@ -0,0 +1,89 @@
{
"rewrites": [
{
"source": "/_assets/:version/:path*",
"destination": "/assets/:path*"
}
],
"headers": [
{
"source": "/_assets/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "/assets/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "/_build/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/(.*).js",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/(.*).css",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/index.html",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
},
{
"key": "Pragma",
"value": "no-cache"
},
{
"key": "Expires",
"value": "0"
}
]
},
{
"source": "/",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=1, stale-while-revalidate"
}
]
}
]
}