Snippets

Some snippets that maybe usefull

Eslint Config for Next.js + TypeScript Project

eslint

next.js

typescript

A ready-to-use configuration template for ESLint tailored for Next.js and TypeScript projects.

Next Auth JWT Configuration

typescript

next.js

nextauth

A boilerplate for configuring next auth for JWT Auth Strategy

Zod Optional Empty Field

typescript

zod

data validation

Make a string field become optional when it's an empty string