From 92e6c2f56505a8f70dff59a7b47bfedad48522ac Mon Sep 17 00:00:00 2001 From: Nick Wylynko Date: Tue, 3 Jun 2025 19:41:42 +0800 Subject: [PATCH 1/2] Add a vercel.json config file --- vercel.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000000..2746b6e803 --- /dev/null +++ b/vercel.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "buildCommand": "npm run build", + "devCommand": "npm run dev", + "installCommand": "npm install", + "outputDirectory": "dist", + "headers": [ + { + "source": "/_public/(.*)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] + } + ] +} From dc0405952fd01e42241ebacf02efa2281ddb8ab4 Mon Sep 17 00:00:00 2001 From: Nick Wylynko Date: Tue, 3 Jun 2025 19:43:21 +0800 Subject: [PATCH 2/2] fix install command --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 2746b6e803..358ad36b5e 100644 --- a/vercel.json +++ b/vercel.json @@ -2,7 +2,7 @@ "$schema": "https://openapi.vercel.sh/vercel.json", "buildCommand": "npm run build", "devCommand": "npm run dev", - "installCommand": "npm install", + "installCommand": "npm install && npm run typedoc:download", "outputDirectory": "dist", "headers": [ {