From f523a1723c9203e4895c451efac1cca7d1751088 Mon Sep 17 00:00:00 2001 From: fillinblank <161938997+maxiang0422@users.noreply.github.com> Date: Wed, 3 Jun 2026 10:04:10 +0800 Subject: [PATCH 1/4] Create _worker.js --- html-examples/_worker.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 html-examples/_worker.js diff --git a/html-examples/_worker.js b/html-examples/_worker.js new file mode 100644 index 0000000..615f62c --- /dev/null +++ b/html-examples/_worker.js @@ -0,0 +1,7 @@ +export default { + async fetch(request, env) { + // 检查前端是否需要将变量暴露给浏览器(有些脚本可能会在 runtime 动态读取) + // 返回正常的静态资源 + return env.ASSETS.fetch(request); + }, +}; From 9f58594cb556470cd7773a340f2a3f3f37c59783 Mon Sep 17 00:00:00 2001 From: fillinblank <161938997+maxiang0422@users.noreply.github.com> Date: Wed, 3 Jun 2026 10:32:26 +0800 Subject: [PATCH 2/4] Delete html-examples/_worker.js --- html-examples/_worker.js | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 html-examples/_worker.js diff --git a/html-examples/_worker.js b/html-examples/_worker.js deleted file mode 100644 index 615f62c..0000000 --- a/html-examples/_worker.js +++ /dev/null @@ -1,7 +0,0 @@ -export default { - async fetch(request, env) { - // 检查前端是否需要将变量暴露给浏览器(有些脚本可能会在 runtime 动态读取) - // 返回正常的静态资源 - return env.ASSETS.fetch(request); - }, -}; From 4e07fe782889fd3087e95d5489caf8cce475bfba Mon Sep 17 00:00:00 2001 From: fillinblank <161938997+maxiang0422@users.noreply.github.com> Date: Wed, 3 Jun 2026 10:51:18 +0800 Subject: [PATCH 3/4] Create wrangler.toml --- wrangler.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 wrangler.toml diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 0000000..f0beb07 --- /dev/null +++ b/wrangler.toml @@ -0,0 +1,4 @@ +#:schema node_modules/wrangler/config-schema.json +name = "realtimekit-ptt-web" +pages_build_output_dir = "html-examples/dist" +compatibility_date = "2024-04-01" From caf2fa037b00f6f9089bfd17489a36aa31aeb001 Mon Sep 17 00:00:00 2001 From: fillinblank <161938997+maxiang0422@users.noreply.github.com> Date: Wed, 3 Jun 2026 11:42:30 +0800 Subject: [PATCH 4/4] Update wrangler.toml --- wrangler.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrangler.toml b/wrangler.toml index f0beb07..7a19aca 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,4 +1,4 @@ #:schema node_modules/wrangler/config-schema.json -name = "realtimekit-ptt-web" +name = "realtimekit-web-examples" pages_build_output_dir = "html-examples/dist" compatibility_date = "2024-04-01"