From 310eb03a11914805150003c84da31ddeb6449601 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Mon, 3 Jun 2024 16:39:59 +0800 Subject: [PATCH] deploy --- public/functions/_worker.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 public/functions/_worker.js diff --git a/public/functions/_worker.js b/public/functions/_worker.js deleted file mode 100644 index 475253c..0000000 --- a/public/functions/_worker.js +++ /dev/null @@ -1,14 +0,0 @@ -export default { - async fetch(request, env) { - const url = new URL(request.url) - - // 重定向到子站点 - if (url.pathname.startsWith('/pro-example')) { - url.hostname = 'fantastic-mobile-pro-example.pages.dev' - return fetch(url.toString(), request) - } - - // 其他路径处理 - return env.ASSETS.fetch(request) - }, -}