支持在action中配置d1

This commit is contained in:
mtvpls
2026-01-30 15:46:43 +08:00
parent 465821a6c9
commit 0237b77447
3 changed files with 32 additions and 22 deletions
+6
View File
@@ -9,6 +9,12 @@ main = ".open-next/worker.js"
directory = ".open-next/assets"
binding = "ASSETS"
# D1 数据库绑定
[[d1_databases]]
binding = "DB"
database_name = "moontvplus"
database_id = "REPLACE_WITH_YOUR_D1_DATABASE_ID"
[vars]
NODE_ENV = "production"
BUILD_TARGET = "cloudflare"