22 lines
471 B
TOML
22 lines
471 B
TOML
name = "2fauth-worker-dev"
|
|
main = "backend/src/app/index.ts"
|
|
compatibility_date = "2024-04-01"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
|
|
[assets]
|
|
binding = "ASSETS"
|
|
directory = "frontend/dist"
|
|
not_found_handling = "single-page-application"
|
|
run_worker_first = true
|
|
|
|
[build]
|
|
command = "npm run build --prefix ../frontend"
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "2fauth-db-dev"
|
|
database_id = "9e591736-5dbb-4f09-8769-0270d7257731"
|
|
|
|
[triggers]
|
|
crons = ["0 2 * * *"]
|