skip to content
rajneeshsoftware developer · coding since 2014

$ cat ~/snippets

code dictionary

snippets i reach for again and again. copy, paste, ship.

01 /

Protect your routes with Next 14 middleware

Route protection in Next.js 14 with one middleware file: check the session at the edge and send anyone without it to sign in.