From ed300cc92e2866240320cd8d432e2cd2d706b86c Mon Sep 17 00:00:00 2001 From: leookun Date: Fri, 28 Aug 2026 00:35:37 +0800 Subject: [PATCH] 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. --- apps/docs/wrangler.jsonc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apps/docs/wrangler.jsonc diff --git a/apps/docs/wrangler.jsonc b/apps/docs/wrangler.jsonc new file mode 100644 index 0000000..a653e6f --- /dev/null +++ b/apps/docs/wrangler.jsonc @@ -0,0 +1,24 @@ +{ + "$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 }] +}