pastebin-worker
pastebin-worker copied to clipboard
分享文字失败,响应状态码500
分享文件没问题,但是分享文字用不了,看请求响应的是500,文字用的是kv吧,但是我有配置好kv的,放出wrangler.toml帮我看看有没什么问题?
另外:BASE_URL和自定义域名我在worker后台配置的。
name = "pastebin"
compatibility_date = "2023-10-30"
compatibility_flags = ["nodejs_compat"]
account_id = "950264872e4a996635e310b837126911"
main = "src/index.ts"
workers_dev = false
# 如果不使用自定义域名,将下面的代码注释掉
# route = { pattern = "as.al", custom_domain = true }
kv_namespaces = [
{ binding = "pastebin", id = "4b6a65b267d644749354f2a318c1677b" },
]
[vars]
ENVIRONMENT = "production"
BASE_URL = "https://as.al"
[site]
bucket = "./static/dist"
[[r2_buckets]]
binding = 'BUCKET'
bucket_name = 'pastes'
# [[d1_databases]]
# binding = "DB"
# database_name = "pastebins"
# database_id = "e7d77803-c383-45c8-9481-c1630aa43bca"```