20 lines
394 B
TOML
20 lines
394 B
TOML
name = "2fauth-worker-demo"
|
|
main = "backend/src/app/worker.ts"
|
|
compatibility_date = "2024-04-01"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
|
|
[assets]
|
|
binding = "ASSETS"
|
|
directory = "frontend/dist"
|
|
not_found_handling = "single-page-application"
|
|
|
|
[build]
|
|
command = "npm run build --prefix frontend"
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "2fauth-db-demo"
|
|
|
|
[triggers]
|
|
crons = ["0 2 * * *"]
|