Files
cursor-byok/apps/docs/wrangler.jsonc
T
leookun ed300cc92e feat(docs): add wrangler configuration for cursor-byok documentation site
- Created a new wrangler.jsonc file to define the configuration for the cursor-byok-docs project.
- Set compatibility date and enabled necessary compatibility flags for Node.js API and public fetch.
- Specified asset directory and service bindings for the documentation site.
2026-08-28 00:35:37 +08:00

25 lines
704 B
JSON

{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "cursor-byok-docs",
"main": ".open-next/worker.js",
"compatibility_date": "2025-09-01",
"compatibility_flags": [
// 启用 Node.js API,OpenNext 运行时需要
"nodejs_compat",
// 只允许 fetch 公网地址
"global_fetch_strictly_public"
],
"assets": {
"directory": ".open-next/assets",
"binding": "ASSETS"
},
"services": [
{
"binding": "WORKER_SELF_REFERENCE",
"service": "cursor-byok-docs"
}
]
// 绑定自定义域名(要求 leokun.cn 的 DNS 托管在同一 Cloudflare 账号)时取消注释:
// "routes": [{ "pattern": "docs.leokun.cn", "custom_domain": true }]
}