diff --git a/open-isle-cli/functions/api/api.js b/open-isle-cli/functions/api/api.js deleted file mode 100644 index 92d252ecd..000000000 --- a/open-isle-cli/functions/api/api.js +++ /dev/null @@ -1,21 +0,0 @@ -// open-isle-cli/functions/api/[...path].js -export async function onRequest({ request }) { - const url = new URL(request.url) - - // 把路径原封不动转发到广州裸 IP - url.hostname = "129.204.254.110" - url.port = "8080" - url.protocol = "http:" - - const resp = await fetch(url, request) - - // 附加 CORS 头 - return new Response(resp.body, { - status: resp.status, - headers: { - ...resp.headers, - "Access-Control-Allow-Origin": "https://9ac7b637-openisle.cjt807916.workers.dev", - "Access-Control-Allow-Credentials": "true" - } - }) -} \ No newline at end of file diff --git a/open-isle-cli/wrangler.toml b/open-isle-cli/wrangler.toml deleted file mode 100644 index a374fbf63..000000000 --- a/open-isle-cli/wrangler.toml +++ /dev/null @@ -1,11 +0,0 @@ -# open-isle-cli/wrangler.toml -name = "openisle" -compatibility_date = "2025-07-12" - -[build] -command = "npm run build" -# 当你用 `wrangler pages deploy dist` 时,下面这行指定静态文件目录 -upload_dir = "./dist" - -[assets] -directory = "./dist" \ No newline at end of file