Skip to content
TypeScript

fix(marketing): typecheck cache no longer misses when the shell env changes (#22735)

Theo Browneea1c49419e74
diff --git a/apps/marketing/astro.config.mjs b/apps/marketing/astro.config.mjs
index 5ba3da4fba1..15a8a8f9163 100644
--- a/apps/marketing/astro.config.mjs
+++ b/apps/marketing/astro.config.mjs
@@ -1,5 +1,11 @@
import { defineConfig } from "astro/config";
+// Astro loads env with an empty prefix, and under `vp run` Vite+'s loadEnv then reports every
+// variable to the task cache. Any env difference (TERM, VP_RAW_SUBCOMMAND, an agent's session
+// vars) would rerun `astro check`. Without the runner client, loadEnv reads process.env directly;
+// file tracking does not use this client.
+delete process.env.VP_RUN_NODE_CLIENT_PATH;
+
export default defineConfig({
site: "https://t3.codes",
server: {