From 35b141f9353339d827009c82787332f3abc05c63 Mon Sep 17 00:00:00 2001 From: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Date: Tue, 13 Feb 2024 17:43:43 +0800 Subject: [PATCH] chore: vercel rewrites (#784) --- example/vercel.json | 9 ++++++++- turbo.json | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/example/vercel.json b/example/vercel.json index 225d4890..edd4aeb8 100644 --- a/example/vercel.json +++ b/example/vercel.json @@ -2,5 +2,12 @@ "$schema": "https://openapi.vercel.sh/vercel.json", "installCommand": "pnpm install", "buildCommand": "pnpm turbo run generate", - "outputDirectory": ".contented/.preview/out/" + "outputDirectory": ".contented/.preview/out/", + "rewrites": [ + { "source": "/", "destination": "/contented/about.html" }, + { + "source": "/:path*", + "destination": "/:path*.html" + } + ] } diff --git a/turbo.json b/turbo.json index ed08472d..f920c5cb 100644 --- a/turbo.json +++ b/turbo.json @@ -20,6 +20,7 @@ "dependsOn": ["^build"] }, "generate": { + "cache": false, "inputs": ["**/.md"], "dependsOn": ["build"] },