ტერმინები
რა არის Next.js?
ვრცლად
Next.js 2016-ში დაიბადა (Guillermo Rauch + Naoyuki Kanezawa, Vercel-ის co-founders). Original goal: SSR React-ისთვის ფასადი — server rendering, code splitting, prefetching. 2024 v15 (App Router) — RSC + Server Actions stable, paradigm shift from pages-based.
არქიტექტურა App Router (Next.js 13+): (1) **Server Components default** — components render at server, send 0 JS to client unless interactive. (2) **Client Components** — opt-in via "use client" directive. (3) **File-based routing** — folder structure = URL structure. (4) **Layouts** — nested, persistent. (5) **Loading + Error boundaries** — convention-based. (6) **Server Actions** — type-safe form submission RPC, no API endpoint needed.
Rendering modes: (1) **SSG (Static Site Generation)** — pre-build at deploy. Best for: blogs, marketing, programmatic. (2) **ISR (Incremental Static Regeneration)** — re-build per-page on demand. Best for: e-commerce, large catalogs. (3) **SSR (Server-Side Rendering)** — render per request. Best for: personalized content. (4) **CSR (Client-Side Rendering)** — fallback for interactive widgets.
Deployment: **Vercel** (native, $0-$20-$40+/mo) — best DX. **Cloudflare Pages** — limited Server Components support. **AWS Amplify** — enterprise. **Self-host Node.js** — DigitalOcean / Railway. Vercel default for 90% projects.
Craftwebstudio uses Next.js 15 + Vercel default 2024-2026. Migration WordPress → Next.js: 5,000-15,000 ₾, 4-8 კვირა. Performance gain: WordPress LCP 4-7s → Next.js LCP 1.2-1.8s. Build performance: 770-page programmatic site builds in 90s.
მაგალითები
- 1App Router file-based routing: app/blog/[slug]/page.tsx → /blog/foo URL
- 2Server Action: async function action(formData) { "use server"; ... } — form RPC
- 3Image: <Image src priority /> → automatic AVIF + responsive + lazy load
- 4Streaming: loading.tsx + Suspense → progressive UI rendering
- 5Vercel deploy: git push → 60s CI/CD → live preview URL automatic
მსგავსი ტერმინები
React
React არის JavaScript ბიბლიოთეკა UI-ს ასაშენებლად — Facebook-მა 2013-ში გაუშვა. დღეს უმსხვილესი frontend ბიბლიოთეკა — 40…
JAMstack
JAMstack — JavaScript + APIs + Markup — არქიტექტურული პატერნი, სადაც frontend pre-built static-ი (Next.js/Astro), dynami…
Vercel
Vercel არის cloud platform Next.js-ის authors-ისგან — automated CI/CD, edge deployment 240+ POPs, preview URL per PR, $0…
დაკავშირებული სერვისები
ხშირად დასმული კითხვები
Next.js vs Remix 2026-ში — რომელი?▾
Next.js: ecosystem 10× bigger, Vercel deployment, RSC + Server Actions stable, programmatic SEO superior. Remix: web fundamentals focus, edge-first. Next.js 90% case wins.
Next.js Pages Router vs App Router?▾
App Router (v13+) — default for new projects. RSC, Server Actions, layouts. Pages Router (v12 ↓) legacy support, не deprecated. Migration App Router-ზე recommended for new development.
Next.js self-host vs Vercel?▾
Vercel: best DX, automatic edge, RSC native, $0-$40/mo. Self-host (DigitalOcean Node.js): full control, $20+/mo, more DevOps. 95% projects Vercel, only data-sovereignty cases self-host.
გინდა უფასო კონსულტაცია?
დაგვიკავშირდი — 24 საათის განმავლობაში დაგიბრუნებთ საპასუხო წერილს პროექტის შეფასებით.