Loading video...
Video Failed to Load
Just shipped a new Next.js template! • Uses Postgres and Drizzle for the database • UI components with Tailwind and shadcn/ui • Email/password authentication with JWTs stored to cookies • Dashboard pages with CRUD operations on users/teams • Basic RBAC with Owner and Member roles • Pricing page (/)... show more
362,516 views • 1 year ago •via X (Twitter)
9 Comments

Story points to complete this: 6 newborn nap times 🤣

@nextjs Love the distinction between global / local middleware. You need to run code before the page cache (edge) and after the cache (region)

@nextjs Congratz! If you need a bit more @achromaticlabs !

@nextjs @achromaticlabs I linked to it in the README 😁 Great work!

@nextjs i have a question. why don't the matcher in middleware simply be /dashboard/:path* ? looking at the middleware func, i think it's only there to handle requests to protected routes 🤔 it doesn't need to run for other routes, does it?

@nextjs Good question – it also refreshes the session cookie (on all routes).

@yeg_jennifer @nextjs You can create custom themes!

@nextjs Awesome work! Love the stack with Next.js, Drizzle, and Tailwind. The RBAC and activity logging system are a great touch for scaling apps. Excited to check out the demo and dive into the code. Looking forward to seeing how you evolve this.

@nextjs RIP to all sass template inde hackers!!



