From e94ad196469e9cc9f0e4ed6f990ac8cce8ddb8fa Mon Sep 17 00:00:00 2001 From: kuekhaoyang Date: Wed, 24 Dec 2025 15:53:40 +0800 Subject: [PATCH] feat: add Cloudflare Pages configuration via wrangler.toml --- README.md | 8 +++++++- wrangler.toml | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 wrangler.toml diff --git a/README.md b/README.md index d822764..ded6aa4 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,13 @@ docker run -d -p 3000:3000 -e ACCESS_PASSWORD=your_secret_password --name kvideo -#### 选项 1:Vercel 一键部署(推荐) +#### 选项 1:Cloudflare Pages 一键部署(推荐) + + + Deploy to Cloudflare Pages + + +#### 选项 2:Vercel 一键部署 [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/KuekHaoYang/KVideo) diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 0000000..bf0953b --- /dev/null +++ b/wrangler.toml @@ -0,0 +1,4 @@ +name = "kvideo" +pages_build_output_dir = ".vercel/output/static" +compatibility_date = "2025-11-17" +compatibility_flags = ["nodejs_compat"]