Skip to content

Commit 76dbaf2

Browse files
authored
fix(catalog): serve app shell at lab route (#42159)
1 parent 9dd0e39 commit 76dbaf2

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/lab/catalog/catalog/worker.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { describe, expect, test } from "bun:test"
2+
import wrangler from "../wrangler.jsonc"
23
import { assetPath } from "../worker"
34

45
describe("catalog worker", () => {
@@ -12,4 +13,8 @@ describe("catalog worker", () => {
1213
expect(assetPath("/lab/catalog/catalog.json")).toBe("/catalog.json")
1314
expect(assetPath("/lab/catalog/captures/opencode/home.frame.json")).toBe("/captures/opencode/home.frame.json")
1415
})
16+
17+
test("leaves HTML routing to the worker", () => {
18+
expect(wrangler.assets.html_handling).toBe("none")
19+
})
1520
})

packages/lab/catalog/wrangler.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"assets": {
99
"directory": "./dist",
1010
"binding": "ASSETS",
11+
"html_handling": "none",
1112
},
1213
"routes": [
1314
{

0 commit comments

Comments
 (0)