Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): hash TanStack deployment pins in build cache (#51054)

Alaister Young690d67e3727c
diff --git a/apps/studio/turbo.jsonc b/apps/studio/turbo.jsonc
index bb57b7c8670..10744f33bab 100644
--- a/apps/studio/turbo.jsonc
+++ b/apps/studio/turbo.jsonc
@@ -33,6 +33,9 @@
"SUPABASE_URL",
"VERCEL",
"VERCEL_ENV",
+ // Vite embeds this ID in server-function request pins.
+ // A different deployment ID requires fresh build output.
+ "VERCEL_DEPLOYMENT_ID",
// Project-level Vercel settings Nitro's vercel preset reads at build
// time; they change the emitted routes and asset paths.
"VERCEL_SKEW_PROTECTION_ENABLED",
@@ -125,12 +128,6 @@
"SSR",
],
"passThroughEnv": [
- // Vite bakes this into TanStack's server-function request header. Passed
- // through rather than hashed so Next's same-commit redeploys keep
- // hitting the turbo cache as before; a TanStack cache hit reuses the
- // earlier deployment's id, which is the same code and falls back to
- // latest if that deployment is gone.
- "VERCEL_DEPLOYMENT_ID",
"CURRENT_CLI_VERSION",
"VERCEL_GIT_COMMIT_REF",
"VERCEL_GIT_COMMIT_SHA",