import { withRaredays } from "@raredays/core/next"; import type { NextConfig } from "next"; // `output: "export"` produces a truly static build — plain HTML/CSS/JS in // `out/`, deployable to any CDN (Cloudflare Pages, R2, S3+CloudFront, // GitHub Pages, edge workers). No Node runtime, no `next start`. // // Trade-offs that come with this: // - no SSR, no `cookies()`/`headers()`, no `revalidatePath`/`revalidateTag` // - no `app/api/` route handlers // - dynamic routes need `generateStaticParams` // // If you need any of the above, scaffold with `--template client` (BFF + SPA) // or `--template full-stack` (Next.js + framework modules). const config: NextConfig = withRaredays({ output: "export", }); export default config;