import type { NextConfig } from 'next'; const nextConfig: NextConfig = { reactStrictMode: true, // Each storefront is a fully static build, deployed to its own Cloudflare // Worker. No server runtime is needed — the @store CSS technique and the // per-store copy are resolved entirely at build time. output: 'export', // Pin the workspace root: sibling projects carry their own lockfiles and // Next would otherwise warn while inferring it. outputFileTracingRoot: import.meta.dirname, trailingSlash: true, images: { unoptimized: true, }, env: { NEXT_PUBLIC_STORE_CODE: process.env.NEXT_PUBLIC_STORE_CODE || 'executive', }, }; export default nextConfig;