From d20200ffd1a24c3f36fd3fa102bd6e1aff30a6d6 Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Sun, 14 Jan 2024 09:34:09 +0800 Subject: [PATCH] chore: add vercel config for translations (#2664) --- vercel.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000..57c4c29d --- /dev/null +++ b/vercel.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "headers": [ + { + "source": "/assets/(.*)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=31536000, immutable" + } + ] + }, + { + "source": "/(.*).png", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=604800, immutable" + } + ] + } + ], + "rewrites": [ + { + "source": "/:path*", + "destination": "/:path*.html" + } + ] +}