@oona/vlo / index / defineConfig
Function: defineConfig()
defineConfig(
config):VloConfig
Defined in: sdk/ts/sdk/src/config/define.ts:169
Types and checks a vlo.config.ts and returns it unchanged for export default.
Throws a TypeError when profiles is empty. Values wrapped with env are resolved later, when the CLI loads the profile.
Parameters
config
Returns
Example
ts
import { defineConfig, env } from "@oona/vlo";
export default defineConfig({
workflows: ["./workflows/*.workflow.ts"],
workers: ["./workers/*.worker.ts"],
profiles: {
local: { journal: "sqlite://.vlo/dev.db", blob: "file://.vlo/blobs" },
prod: {
journal: env("DATABASE_URL"),
auth: { token: env("VLO_TOKEN") },
roles: ["orchestrator", "api"],
queues: { media: { mode: "pull" } },
dispatcher: { mode: "manual" },
deploy: { target: "vercel", cron: "* * * * *" },
},
},
});