Static Site Generation
SSGتوليد الموقع الثابت (SSG)
Definition
A Next.js rendering mode where pages are built to HTML at build time, served instantly from CDN.
وضع تصيير Next.js تُبنى فيه الصفحات إلى HTML في وقت البناء، وتُخدَّم فورًا من CDN.
Why It Matters
Glossary term pages are ideal SSG candidates — the content changes rarely and every visitor sees the same HTML. SSG gives them near-instant load times and perfect SEO.
صفحات مصطلحات القاموس مرشحون مثاليون لـSSG — المحتوى يتغير نادرًا وكل زائر يرى نفس HTML. SSG يمنحها أوقات تحميل شبه فورية وتحسين محركات بحث مثالي.
Full Definition
Example Usage
“// app/glossary/[slug]/page.tsx export async function generateStaticParams() { const terms = await fetchAllSlugs(); return terms.map(t => ({ slug: t.slug })); }”
“// app/glossary/[slug]/page.tsx export async function generateStaticParams() { const terms = await fetchAllSlugs(); return terms.map(t => ({ slug: t.slug })); }”
AI Builder Tips
Avoid these mistakes when using Static Site Generation:
SSG for pages with frequently changing data — use ISR or dynamic rendering instead
Not providing generateStaticParams for dynamic routes — Next.js falls back to dynamic rendering
Sign in to unlock guided AI explanations from AI Teacher.
Generate a Prompt
Copy this prompt and use it directly with any AI model — no setup needed.
Help me build a project using Static Site Generation. Explain: 1. What is Static Site Generation and why it matters 2. The core architecture and required tools 3. Step-by-step implementation plan 4. Common mistakes to avoid: SSG for pages with frequently changing data — use ISR or dynamic rendering instead, Not providing generateStaticParams for dynamic routes — Next.js falls back to dynamic rendering 5. Best practices and production tips