feat:同步代码

This commit is contained in:
初衷
2025-08-20 08:52:32 +08:00
6 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
import { checkKVConfig } from '../utils/middleware';
export const onRequest = [checkKVConfig];

View File

@@ -0,0 +1,3 @@
import { checkKVConfig } from '../utils/middleware';
export const onRequest = [checkKVConfig];

View File

@@ -0,0 +1,3 @@
import { checkKVConfig } from '../utils/middleware';
export const onRequest = [checkKVConfig];

View File

@@ -1,5 +1,5 @@
import { fetchOthersConfig } from "./utils/sysConfig";
import { readIndex } from "./utils/indexManager";
import { fetchOthersConfig } from "../utils/sysConfig";
import { readIndex } from "../utils/indexManager";
let othersConfig = {};
let allowRandom = false;

View File

@@ -0,0 +1,3 @@
import { errorHandling, telemetryData, checkKVConfig } from '../utils/middleware';
export const onRequest = [checkKVConfig, errorHandling, telemetryData];

View File

@@ -1,7 +1,6 @@
import sentryPlugin from "@cloudflare/pages-plugin-sentry";
import '@sentry/tracing';
import { fetchOthersConfig } from "./sysConfig";
import { getIndexInfo, rebuildIndex } from "./indexManager";
let disableTelemetry = false;