fix(catalog): serve app shell at lab route (#42159)

This commit is contained in:
Kit Langton
2026-08-12 18:18:24 -04:00
committed by GitHub
Unverified
parent 9dd0e39867
commit 76dbaf20ad
2 changed files with 6 additions and 0 deletions
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test"
import wrangler from "../wrangler.jsonc"
import { assetPath } from "../worker"
describe("catalog worker", () => {
@@ -12,4 +13,8 @@ describe("catalog worker", () => {
expect(assetPath("/lab/catalog/catalog.json")).toBe("/catalog.json")
expect(assetPath("/lab/catalog/captures/opencode/home.frame.json")).toBe("/captures/opencode/home.frame.json")
})
test("leaves HTML routing to the worker", () => {
expect(wrangler.assets.html_handling).toBe("none")
})
})
+1
View File
@@ -8,6 +8,7 @@
"assets": {
"directory": "./dist",
"binding": "ASSETS",
"html_handling": "none",
},
"routes": [
{