feat(CF): 现已支持部署到CloudFlare-Workers

This commit is contained in:
2025-12-22 14:55:40 +08:00
parent 6f6dea9f03
commit 1c7837d50c
12 changed files with 2441 additions and 119 deletions

20
tsconfig.worker.json Normal file
View File

@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ES2022"],
"types": ["@cloudflare/workers-types"],
"strict": true,
"skipLibCheck": true,
"noEmit": true,
"isolatedModules": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"paths": {
"@shared/*": ["./src/shared/*"]
},
"baseUrl": "."
},
"include": ["src/worker/**/*", "src/shared/**/*"]
}