mirror of
https://github.com/MarSeventh/CloudFlare-ImgBed.git
synced 2026-01-31 09:03:19 +08:00
feat:同步代码
This commit is contained in:
3
functions/api/_middleware.js
Normal file
3
functions/api/_middleware.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import { checkKVConfig } from '../utils/middleware';
|
||||
|
||||
export const onRequest = [checkKVConfig];
|
||||
3
functions/file/_middleware.js
Normal file
3
functions/file/_middleware.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import { checkKVConfig } from '../utils/middleware';
|
||||
|
||||
export const onRequest = [checkKVConfig];
|
||||
3
functions/random/_middleware.js
Normal file
3
functions/random/_middleware.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import { checkKVConfig } from '../utils/middleware';
|
||||
|
||||
export const onRequest = [checkKVConfig];
|
||||
@@ -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;
|
||||
3
functions/upload/_middleware.js
Normal file
3
functions/upload/_middleware.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import { errorHandling, telemetryData, checkKVConfig } from '../utils/middleware';
|
||||
|
||||
export const onRequest = [checkKVConfig, errorHandling, telemetryData];
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user