Urgent fix server app version dev (#3117)

* fix(server): avoid app version global in MCP dev

* fix(server): use runtime-safe app version metadata
This commit is contained in:
Lihan YANG
2026-05-29 06:13:45 +08:00
committed by GitHub
parent 9ce5bacd22
commit d09ad2cdc0
5 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import z from "zod";
import { resumeDataSchema } from "@reactive-resume/schema/resume/data";
import { appVersion } from "../app-version";
export function handleSchemaJson() {
const resumeDataJSONSchema = z.toJSONSchema(resumeDataSchema);
@@ -12,7 +13,7 @@ export function handleSchemaJson() {
"Surrogate-Control": "max-age=86400",
"X-Content-Type-Options": "nosniff",
"X-Robots-Tag": "index, follow",
ETag: __APP_VERSION__,
ETag: appVersion,
Vary: "Accept",
},
});