import type { NextConfig } from "next"; const isProd = process.env.NODE_ENV === "production"; const nextConfig: NextConfig = { output: "export", // Required for static export to GitHub Pages basePath: isProd ? "/gfbs3-portfolio-demo" : "", // Adjust to your repository name images: { unoptimized: true, // Required for Next.js Image component on GitHub Pages }, }; export default nextConfig;