pnpm dev
— Start the Next.js development server.pnpm build
— Generate production build.pnpm db:generate
— Generate SQL migrations from schema.pnpm db:migrate
— Apply migrations to the database.pnpm db:push
— Push schema changes (rarely used).pnpm db:studio
— Launch Drizzle Studio..test.ts(x)
suffix.pnpm test
or pnpm vitest
.e2e/
directory.pnpm playwright test
.pnpm playwright codegen <url>
to scaffold flows.start-server-and-test
.pnpm format:check
— Run Prettier in check mode (ts
, tsx
, js
, jsx
, mdx
).pnpm format:write
— Automatically format files using Prettier.pnpm lint
— Run ESLint via next lint
.pnpm lint:fix
— Fix ESLint issues automatically.lint
and format:check
before creating PRs.any
at all costs. If absolutely necessary, use // FIXME: any
with an explanation.ReturnType
, Pick
, and Partial
to avoid duplication.app/
directory).
layout.tsx
, page.tsx
, loading.tsx
, etc. correctly.icons/
folder and import them — avoid inline SVGs unless necessary.type
modifier for type-only imports:
import type { User } from "@/types";