What are API routes in Next.js and why would you use them?
API routes let you build backend endpoints directly inside your Next.js project, so you can handle things like form submissions or database calls…
28 key Next.js questions with one-line answers, covering 14 topics, on a printable sheet. Read it the night before, or pin it next to your screen.
API routes let you build backend endpoints directly inside your Next.js project, so you can handle things like form submissions or database calls…
In the Pages Router, the request object passed to your handler function gives you access to query parameters through req.query and to the submitted…
Authentication confirms who a user is, usually through a login form or a third party sign in provider, while authorization decides what that…
You check the user's session at the top of a server component or in middleware, and redirect them to the login page immediately if no valid session…
The full sheet has 28 questions. Sign in (free) to open it and save it as a PDF.