# Deploy: wrangler deploy (credentials from the environment; secrets via `wrangler secret put`) name = "duly" main = "src/index.js" compatibility_date = "2026-10-01" workers_dev = true [observability] enabled = true [assets] directory = "../web" binding = "ASSETS" not_found_handling = "single-page-application" # The landing and invoice pages are rendered by the Worker so they read without JavaScript. run_worker_first = ["/api/*", "/", "/test", "/test/", "/i/*", "/test/i/*"] [[durable_objects.bindings]] name = "LEDGER" class_name = "Ledger" [[migrations]] tag = "v1" new_sqlite_classes = ["Ledger"] [triggers] crons = ["* * * * *"] [vars] PUBLIC_URL = "https://duly.swiftbotlab.workers.dev" RELAYER_ACCOUNT_TESTNET = "relayer-duly.testnet" AGENT_ACCOUNT_TESTNET = "agent-duly.testnet" RELAYER_ACCOUNT_MAINNET = "relayer.dulypay.near" AGENT_ACCOUNT_MAINNET = "agent.dulypay.near" ONBOARD_DAILY = "6" TELEGRAM_BOT_NAME = "DulyPayBot" DAILY_BUDGET_YOCTO = "60000000000000000000000" MONEY_BUDGET_YOCTO = "30000000000000000000000"