SSG Implementation
Key aspects of this SSG implementation:
- Used export const dynamic = 'force-static' to ensure static generation
- Build-time data fetching during the build process
- RuleCMS widgets are included in the static HTML
- Page is served as static files from CDN
When to Use SSG
- For content that doesn't change frequently
- Marketing pages, blogs, documentation
- When maximum performance is required
- For content that can be pre-rendered at build time
- When you want to serve from a CDN globally
Build Process
During npm run build:
- Next.js pre-renders this page with RuleCMS widgets
- Static HTML, CSS, and JavaScript are generated
- Files can be deployed to any static hosting service
- No server required - pure static files!