From fadd068943c2ff32e40f141a90143941600907cd Mon Sep 17 00:00:00 2001 From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com> Date: Thu, 27 Aug 2026 14:45:11 +0200 Subject: [PATCH] fix: turborepo build cache (#2615) --- turbo.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/turbo.json b/turbo.json index deed2942b..72795002b 100644 --- a/turbo.json +++ b/turbo.json @@ -14,7 +14,13 @@ "env": [ "\\*", "RESEND_API_KEY", - "\\!NEXT_PUBLIC_GIT_\\*", + // Framework inference pulls every NEXT_PUBLIC_* into the hash of any + // package that depends on next; these Vercel system vars change on every + // deploy, so without the negations nothing ever cache-hits. + "!NEXT_PUBLIC_VERCEL_GIT_*", + "!NEXT_PUBLIC_VERCEL_URL", + "!NEXT_PUBLIC_VERCEL_BRANCH_URL", + "!NEXT_PUBLIC_VERCEL_DEPLOYMENT_ID", "DATABASE_URL", "DATABASE_AUTH_TOKEN", "TINY_BIRD_API_KEY", -- 2.51.2