Next.js 16 static export + PHP 8 API for cPanel/Apache hosting. - Location-aware campus finder (IP estimate, optional precise location, ZIP search) - Three-step Plan Your Visit form with separate email/SMS consent - PHP API: validation, anti-spam, rate limiting, SQLite lead store, Mailchimp and Sinch Engage adapters, idempotent retries via cron - Attribution capture (utm_*, gclid/gbraid/wbraid, fbclid, ttclid, twclid) and consent-aware analytics hooks - Vitest and PHP test suites, cPanel deployment script and docs Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
23 lines
680 B
TypeScript
23 lines
680 B
TypeScript
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;
|