diff --git a/.gitignore b/.gitignore index 6b306bd..b28ac53 100644 --- a/.gitignore +++ b/.gitignore @@ -107,3 +107,4 @@ venv.bak/ .idea/ data/ log/ +.vercel diff --git a/frontend/vercel.json b/frontend/vercel.json new file mode 100644 index 0000000..9f7344d --- /dev/null +++ b/frontend/vercel.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "cleanUrls": true, + "trailingSlash": false, + "headers": [ + { + "source": "/((?!api/)[^.]*)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=180" + } + ] + }, + { + "source": "/((?!api/).+\\.\\w+)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=86400" + } + ] + } + ], + "rewrites": [ + { + "source": "/((?!api/)[^.]+)", + "destination": "/" + } + ] +}