Time‑Based Public Access for the `/tv` Route in a Next.js App
This story is from 2026-08-30. It is preserved in the archive; the latest stories are on the live feed.
Time‑Based Public Access for the /tv Route in a Next.js App TL;DR: I added a temporal gate that lets anyone hit /tv without a session cookie between 9 am‑6 pm America/Cancun. Outside that window the request falls back to the normal auth middleware. The change lives in src/lib/auth.ts and src/middle…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-08-30 18:17 · DEV Community — AI
Time‑Based Public Access for the `/tv` Route in a Next.js App