Files
sprout2fa/wrangler.toml
2026-06-24 22:10:27 +08:00

18 lines
567 B
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name = "sprout2fa"
main = "src/worker/index.ts"
compatibility_date = "2024-12-30"
# 前端静态资源由 Vite 构建到 frontend/dist仅 Worker 打包 API
[assets]
directory = "./frontend/dist"
binding = "ASSETS"
not_found_handling = "single-page-application"
# 创建数据库后执行: wrangler d1 create sprout2fa
# 将返回的 database_id 填入下方,并执行: wrangler d1 migrations apply sprout2fa --remote
[[d1_databases]]
binding = "DB"
database_name = "sprout2fa"
database_id = "015c5c76-11d8-470a-a5dc-f5c7a4b59ccb"
migrations_dir = "migrations"