mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
fix(catalog): serve app shell at lab route (#42159)
This commit is contained in:
committed by
GitHub
Unverified
parent
9dd0e39867
commit
76dbaf20ad
@@ -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")
|
||||
})
|
||||
})
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
"binding": "ASSETS",
|
||||
"html_handling": "none",
|
||||
},
|
||||
"routes": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user