chore: sync local changes to Gitea

This commit is contained in:
shumengya
2026-06-24 22:10:27 +08:00
commit 0812a531e2
44 changed files with 11212 additions and 0 deletions

17
wrangler.toml Normal file
View File

@@ -0,0 +1,17 @@
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"