Replies in <2h
For developers — Next.js, React, performance & architecture
Practical guide to Next.js Metadata API — title, description, Open Graph, Twitter cards, canonical and dynamic sitemap with generateMetadata.
Practical guide to auth with Next.js Middleware — session checks, protected routes, smart redirects and secure token handling without leaking to the client.
Practical guide to loading.js and error.js in the Next.js App Router with Suspense and streaming: skeleton UIs, error boundaries, and retry buttons.
Practical guide to Next.js image optimization with next/image, modern formats, correct sizes, and smart caching to fix LCP and Core Web Vitals.
Practical guide to validating Next.js forms with Zod and React Hook Form — one shared schema for client and Server Actions, clean errors and solid UX.
Persian website with Next.js 15: dir and lang setup, Vazirmatn font with font-display swap, shift-free images with next/image and PPR. Full code, comparison table and deploy checklist.