Rune comes from app/vendor/rune now, a checkout of 63ad0209 on branch ported, carrying the four commits of upstream issues 1320 (a pause while a clip is layered holds the layer's picture and time) and 1325 (a video's sound is read ahead of the clock and leads it). Both were written against eb9f1104 and ported across the refactors since. The faults are the first two and the third in docs/rune-upstream.md; the app's workarounds in review.rs stay until the fixes arrive upstream.
28 lines
974 B
TypeScript
28 lines
974 B
TypeScript
import { bindings, defineConfig, triggers } from "cf/config"
|
|
import { BASE_PATH, hostForMode } from "./src/base.ts"
|
|
|
|
// `--mode dev` builds and deploys the dev Worker on dev.anoma.ly; any other mode is production
|
|
// on anoma.ly. Cloudflare Access protects /team on both hosts, so no other hostnames.
|
|
// The account comes from CLOUDFLARE_ACCOUNT_ID.
|
|
export default defineConfig(({ mode }) => {
|
|
const host = hostForMode(mode)
|
|
return {
|
|
worker: {
|
|
name: mode === "dev" ? "rune-dev-site" : "rune-production-site",
|
|
compatibilityDate: "2026-10-13",
|
|
entrypoint: "./worker.ts",
|
|
assets: { runWorkerFirst: true },
|
|
env: {
|
|
ASSETS: bindings.assets(),
|
|
CANONICAL_HOST: bindings.text(host),
|
|
},
|
|
triggers: [
|
|
triggers.fetch({ pattern: `${host}${BASE_PATH}`, zone: host }),
|
|
triggers.fetch({ pattern: `${host}${BASE_PATH}/*`, zone: host }),
|
|
],
|
|
workersDev: false,
|
|
previewUrls: false,
|
|
},
|
|
}
|
|
})
|