@cosmicdrift/kumiko-dev-server 0.88.0 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/run-prod-app.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-dev-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.89.0",
|
|
4
4
|
"description": "Development server bootstrap for Kumiko apps. Bundles the client, mints dev-JWTs, injects the resolved AppSchema, and seeds an admin. Not for production.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"kumiko-schema-check": "./bin/kumiko-schema-check.ts"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
54
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
53
|
+
"@cosmicdrift/kumiko-bundled-features": "0.89.0",
|
|
54
|
+
"@cosmicdrift/kumiko-framework": "0.89.0",
|
|
55
55
|
"ts-morph": "^28.0.0"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
package/src/run-prod-app.ts
CHANGED
|
@@ -1179,7 +1179,9 @@ function buildStaticFallback(
|
|
|
1179
1179
|
// Liefer 500 statt silent-404 damit der Bug schnell auffällt.
|
|
1180
1180
|
return new Response(`hostDispatch: file not found: ${result.file}`, { status: 500 });
|
|
1181
1181
|
}
|
|
1182
|
-
|
|
1182
|
+
// Per-Host-Body (hostDispatch wählt die Datei nach Host) → Vary: Host,
|
|
1183
|
+
// sonst darf ein Shared-Cache Tenant-As Schema an Tenant B liefern.
|
|
1184
|
+
const extraHeaders: Record<string, string> = { vary: "Host" };
|
|
1183
1185
|
if (result.csp) extraHeaders["content-security-policy"] = result.csp;
|
|
1184
1186
|
return serveHtmlFile(req, "/index.html", html, extraHeaders);
|
|
1185
1187
|
}
|