mirror of
https://github.com/stablyai/orca.git
synced 2026-11-18 03:45:08 +00:00
Cloudflare generates no preview URLs for a Worker that implements a Durable Object, so every --preview-alias upload of orca-sandbox-control-dev 404ed. The runner DO moves to orca-sandbox-build-runner-dev (wrangler.build-runner.dev.jsonc); the control plane binds it with script_name and deletes its own class (migration env-build-runner-v2). The runner only keeps the alarm: each step calls back into the control plane's BuildTicker RPC entrypoint, which runs the same tickBuild with the control plane's D1, provider and secrets, so nothing is duplicated.
11 lines
501 B
TypeScript
11 lines
501 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
// A string tsconfig skips the lookup, which otherwise climbs to the desktop app's tsconfig.
|
|
oxc: { tsconfig: false },
|
|
// workerd-only module (BuildTicker's base class); see the stub.
|
|
resolve: { alias: { 'cloudflare:workers': fileURLToPath(new URL('./test/cloudflare-workers-stub.ts', import.meta.url)) } },
|
|
test: { include: ['test/**/*.test.ts', 'image/**/*.test.ts'] }
|
|
})
|