Backend APIs for the project (Vercel + Hono + Supabase).
npm installCreate .env.local (this file is gitignored):
SUPABASE_URL=your_supabase_url_here
SUPABASE_ANON_KEY=your_supabase_anon_key_herenpm run devLocal dev server: http://localhost:3001
Response:
{"message":"API is running"}PowerShell curl is an alias, so use curl.exe.
curl.exe -X POST http://localhost:3001/api/XXXXXX
curl.exe -X GET http://localhost:3001/api/XXXXXXnpm run formatnpm run deploy- This repo is Vercel-ready via api/[[...route]].ts.
- Local development uses a Node server (
tsx watch src/server.ts) to avoidvercel devrecursive invocation.