API Route
A server-side endpoint defined right in your Next.js project — no separate backend needed.
The Full Picture
Next.js API routes (in App Router: route.ts files) let you build your backend inside your frontend project. A file at `app/api/users/route.ts` becomes the endpoint `/api/users`. They handle GET, POST, PUT, DELETE requests and run server-side.
Vibe coders love this because there's no separate backend to deploy. The risk: AI tools often put sensitive logic (API keys, database queries) in client components instead of API routes, exposing secrets to the browser.
Related Terms
Cloud functions that run your code on demand — no servers to manage, you only pay when they execute.
Server-side code that runs at the CDN edge, close to your users, for ultra-low latency responses.
A URL that receives automatic HTTP notifications when something happens in another service.
Was this helpful?
Want to go deeper? I write about the real gaps vibe coding leaves behind.