chore: sync local changes to Gitea
This commit is contained in:
17
wrangler.toml
Normal file
17
wrangler.toml
Normal 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"
|
||||
Reference in New Issue
Block a user