static-site Template
A Next.js template optimized for static sites, landing pages, documentation, and marketing sites.Quick Start
http://localhost:3000 to see your site.
Specifications
Project Structure
Key Files
next.config.js
The template is configured for static export:Health Endpoint
The health check is a static file atpublic/health:
Adding Pages
Create new pages inapp/:
Styling
The template uses Tailwind CSS:Custom Styles
Add custom CSS inapp/globals.css:
Components
Creating Components
Using Components
Local Development
Building
Deployment
Use Cases
Landing Page
Fast, SEO-friendly marketing pages
Documentation
Static docs with search capability
Portfolio
Personal or agency portfolios
Blog
Static blog with MDX support
SEO Optimization
Metadata
Per-Page Metadata
Best Practices
Optimize images
Optimize images
Use Next.js Image component or optimized formats (WebP, AVIF).
Minimize JavaScript
Minimize JavaScript
Use Server Components by default. Add
'use client' only when needed.Use static data
Use static data
Fetch data at build time, not runtime, for faster loads.
Add caching headers
Add caching headers
Configure nginx/CDN caching for static assets.