- Replace Next.js app router with standalone Bun.serve() entry point - Add middleware stack: rate limiter, body limiter, structured logger, SSRF protection - Add WebSocket bidirectional relay via x-relay-target header - Implement error classification (DNS→502, timeouts→504, SSRF→403, rate→429) - Remove all Next.js dependencies and config files - Update deploy workflow, tsconfig, wrangler config for Bun deployment Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
535 B
JSON
21 lines
535 B
JSON
{
|
|
"name": "edge-proxy-relay",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun --hot src/index.ts",
|
|
"start": "bun src/index.ts",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch",
|
|
"typecheck": "tsc --noEmit",
|
|
"build": "bun build src/index.ts --outdir ./dist --target bun",
|
|
"build:worker": "bun build src/index.ts --outdir ./dist --target bun --format esm"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"bun-types": "^1.3.13",
|
|
"typescript": "^5"
|
|
}
|
|
}
|