Commit Graph
23 Commits
Author SHA1 Message Date
MythEclipseandClaude Fable 5 58553f936e fix: disable Vercel Next.js framework detection
Add "framework": null to vercel.json so Vercel doesn't try to
run Next.js build flow (looking for .next/routes-manifest.json).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 21:22:37 +07:00
MythEclipseandClaude Fable 5 9dc32e8b10 fix: correct Vercel Bun runtime config and handler export format
Per Vercel docs (vercel.com/docs/functions/runtimes/bun):
- Use top-level "bunVersion": "1.x" in vercel.json (NOT functions block)
- Export default { async fetch(request) { ... } } — object with fetch method
  (not a bare default function)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 21:20:16 +07:00
MythEclipseandClaude Fable 5 591c1fa199 fix: add Vercel-compatible relay handler and fix vercel.json runtime
- Create api/relay.ts: Vercel serverless function handler that reuses
  relay logic from src/lib/relay-utils.ts and src/middleware/
- Export default fetch handler (no Bun.serve()) for Vercel Functions
- Fix vercel.json: use @vercel/node@5 runtime with proper routing via
  rewrites to catch all traffic to the relay handler
- Remove stale buildCommand/outputDirectory (Vercel handles function builds)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 21:17:21 +07:00
MythEclipseandClaude Fable 5 f58a92e2aa feat: migrate from Next.js to pure Bun relay proxy
- 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>
2026-06-10 19:54:55 +07:00
MythEclipse f3ec82cbbf fix: replace stripRelayHeaders with filterHeaders and add BLOCKED_HEADERS set 2026-05-07 21:16:31 +07:00
MythEclipse b0dde3c885 refactor: migrate to Next.js with edge functions and update relay utilities
- Removed old relay utilities and tests, replacing them with a new structure under `src/lib/relay-utils.ts`.
- Implemented a new edge function in `app/api/proxy/route.ts` to handle proxy requests.
- Created a new Next.js layout and page structure for the frontend, including a user interface for testing the proxy.
- Added Tailwind CSS for styling and configured PostCSS.
- Updated TypeScript configuration for better compatibility with Next.js.
- Removed unused files and configurations related to the previous setup.
2026-05-07 20:59:23 +07:00
MythEclipse 4c30f2a6e1 chore: remove index.html and update vercel.json for API routing 2026-05-07 20:45:18 +07:00
MythEclipse db175e6e95 fix: update fetch options to include target URL in buildRelayRequest 2026-05-07 20:43:09 +07:00
MythEclipse 9e2f4d39b1 feat: implement API handler for edge runtime with method validation and target normalization 2026-05-07 20:35:18 +07:00
MythEclipse 7df78ad117 fix: remove rewrites configuration from vercel.json 2026-05-07 20:14:43 +07:00
MythEclipse c0bfce3d26 Revert "feat: update build output directory to 'dist' in package.json and set outputDirectory in vercel.json"
This reverts commit cfbc4609b5.
2026-05-07 20:13:41 +07:00
MythEclipse 9759d63b38 feat: add index.html for Edge Proxy Relay interface and remove rewrites from vercel.json 2026-05-07 20:03:57 +07:00
MythEclipse e5de4bbbfb fix: update fetch API endpoint and adjust rewrites in vercel.json 2026-05-07 19:59:34 +07:00
MythEclipse 1b86a33b4e fix: remove functions configuration from vercel.json 2026-05-07 19:54:25 +07:00
MythEclipse 8e0cf9d0f3 fix: update import path for relay-utils and restore functions configuration in vercel.json 2026-05-07 19:53:20 +07:00
MythEclipse 212ce32480 feat: implement Edge Proxy Relay with request handling and header filtering 2026-05-07 19:49:52 +07:00
MythEclipse d8e1e125b1 feat: update vercel.json to restore build and install commands, and adjust routing configuration 2026-05-07 19:46:08 +07:00
MythEclipse cfbc4609b5 feat: update build output directory to 'dist' in package.json and set outputDirectory in vercel.json 2026-05-07 19:41:56 +07:00
MythEclipse 2a82012910 feat: simplify vercel.json by removing function configuration and updating bunVersion 2026-05-07 19:39:31 +07:00
MythEclipse c49c1d7441 feat: add schema and bunVersion to vercel.json configuration 2026-05-07 19:28:51 +07:00
MythEclipse 42cf7a89c7 feat: add function configuration for Bun runtime in vercel.json 2026-05-07 19:26:05 +07:00
MythEclipse 9448a9cc7a feat: add code-review-graph integration and update project configuration 2026-05-07 19:13:00 +07:00
MythEclipse a4fcbbcca9 initial commit for proxy-bun 2026-05-07 18:42:09 +07:00