Skip to content

Commit 63cf1f3

Browse files
committed
deploy: pin api-worker 88e4f80; wire the map assets binding
1 parent a250b88 commit 63cf1f3

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"dev": "wrangler dev"
88
},
99
"dependencies": {
10-
"@interscript/api-worker": "0.0.0-software-not-yet-published"
10+
"@interscript/api-worker": "github:interscript/api#88e4f80"
1111
},
1212
"devDependencies": {
1313
"wrangler": "^4.0.0"
1414
}
15-
}
15+
}

‎src/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Deployment entry: re-exports the versioned software's worker handler.
1+
// Deployment entry: re-exports the pinned software's worker handler.
22
// This file intentionally contains no logic — organizations deploying
33
// their own endpoint change only this dependency pin and wrangler.jsonc.
4-
export * from "@interscript/api-worker";
4+
export { app, default } from "@interscript/api-worker"

‎wrangler.jsonc‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
"routes": [
99
{ "pattern": "api.interscript.org/*", "custom_domain": false }
1010
],
11+
// Bundled map corpus: 291 static asset files served from the edge
12+
// cache (immutable per deploy); the ASSETS binding is the software's
13+
// map loader. Full-corpus detect needs a paid Workers CPU limit
14+
// (first call warms ~seconds; cached afterward) — set in the dashboard
15+
// or via "limits": { "cpu_ms": 30000 } if your plan supports it.
16+
"assets": {
17+
"directory": "./node_modules/@interscript/api-worker/maps",
18+
"binding": "ASSETS"
19+
},
1120
"vars": {
1221
// Software knobs (defaults live in the software package):
1322
// "ML_INDEX_URL": "https://raw.githubusercontent.com/interscript/ml-models/main/models.yaml"

0 commit comments

Comments
 (0)