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.
This commit is contained in:
MythEclipse
2026-05-07 20:59:23 +07:00
parent 4c30f2a6e1
commit b0dde3c885
17 changed files with 427 additions and 1078 deletions
+14 -8
View File
@@ -3,16 +3,22 @@
"type": "module",
"private": true,
"scripts": {
"build": "mkdir -p dist && cp public/index.html dist/index.html",
"start": "bun run src/index.ts",
"dev": "bun --hot run src/index.ts",
"test": "bun test",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"check": "bunx tsc --noEmit"
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "bun test"
},
"devDependencies": {
"@biomejs/biome": "^2.4.14",
"@types/bun": "latest"
"@types/bun": "latest",
"autoprefixer": "^10.5.0",
"postcss": "^8.5.14",
"tailwindcss": "^4.2.4"
},
"dependencies": {
"next": "^16.2.5",
"react": "^19.2.6",
"react-dom": "^19.2.6"
}
}