Archive

#proxy

2 notes match these filters

  • Next.js in Practice · Part 2721 min read

    Server-Aware Auth - Sessions, Proxy and the DAL

    A complete cookie-session auth build for Next.js 16, covering encrypted sessions with jose, login and logout Server Actions, an optimistic check in proxy.ts, a Data Access Layer with verifySession, authorization in actions and Route Handlers, unauthorized() and forbidden(), and the rules for auth under Cache Components.

  • Next.js in Practice · Part 0816 min read

    Route Handlers and Proxy

    How route.ts handlers are dispatched and when a GET is prerendered, and how proxy.ts (the renamed middleware) runs before routing, matches paths and talks to the router through response headers.