mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-05 18:14:38 +00:00
fix(sdk): resolve packaged worker paths on Windows
This commit is contained in:
parent
0485ddab37
commit
c037fd65a5
1 changed files with 2 additions and 1 deletions
|
|
@ -164,12 +164,13 @@ export default {
|
|||
Bun.write(
|
||||
join(consumer, "boot.mjs"),
|
||||
`import { Miniflare } from "miniflare"
|
||||
import { fileURLToPath } from "node:url"
|
||||
|
||||
const miniflare = new Miniflare({
|
||||
compatibilityDate: "2026-07-15",
|
||||
compatibilityFlags: ["nodejs_compat"],
|
||||
modules: true,
|
||||
scriptPath: new URL("./dist/worker.js", import.meta.url).pathname,
|
||||
scriptPath: fileURLToPath(new URL("./dist/worker.js", import.meta.url)),
|
||||
durableObjects: { OPENCODE: { className: "OpenCodeDO", useSQLite: true } },
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue