- Remove API routes (not needed for static export) - Remove old [id] dynamic route - Add generateStaticParams() to templates/[slug] route - Enable output: 'export' for static site generation - Pre-generate all 47 pages at build time (40 templates + 7 static pages) - Ready for GitHub Pages deployment
11 lines
165 B
TypeScript
11 lines
165 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'export',
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|