void.config.ts
Rama main · réplica de lectura del repositorio original.
import { defineConfig } from "void/config";
export default defineConfig({
worker: {
compatibility_date: "2026-05-01",
compatibility_flags: ["nodejs_compat"],
},
cloudflare: {
name: "uptime-zero",
observability: {
enabled: true,
head_sampling_rate: 1,
logs: { head_sampling_rate: 1, invocation_logs: false },
traces: { head_sampling_rate: 1 },
},
d1_databases: [
{
binding: "DB",
database_name: "uptime-zero",
migrations_dir: "./db/migrations",
},
],
// Deployed Workers carry this Durable Object history; never reorder or drop steps.
// v5 retires the scheduler and outbox actors that Void crons replaced.
migrations: [
{ tag: "v1", new_sqlite_classes: ["MonitorActor"] },
{ tag: "v2", new_sqlite_classes: ["SchedulerActor"] },
{ tag: "v3", deleted_classes: ["MonitorActor"] },
{ tag: "v4", new_sqlite_classes: ["NotificationActor"] },
{
tag: "v5",
deleted_classes: ["SchedulerActor", "NotificationActor"],
},
],
},
});