import type { NextConfig } from "next"; /** * visit.waterschurch.org is deployed to cPanel/Apache as a static export. * All server work (form processing, Mailchimp, Sinch, geolocation) lives in * PHP endpoints under public/api, which Next copies verbatim into ./out/api. */ const nextConfig: NextConfig = { output: "export", trailingSlash: false, reactStrictMode: true, poweredByHeader: false, images: { // Static export: images are pre-optimized at build time by scripts/optimize-images.mjs unoptimized: true, }, env: { NEXT_PUBLIC_SITE_URL: process.env.NEXT_PUBLIC_SITE_URL ?? "https://visit.waterschurch.org", }, }; export default nextConfig;