import type { NextConfig } from 'next'; const nextConfig: NextConfig = { // Standalone output keeps the production image small: only the traced // dependencies ship, not the whole node_modules tree. output: 'standalone', reactStrictMode: true, // Next writes its own AGENTS.md/CLAUDE.md otherwise; this project documents // itself in README.md and PLAN.md. agentRules: false, // These must be required from node_modules at runtime, not bundled. // satori loads harfbuzz and yoga as WebAssembly by relative path; bundling // rewrites that path and the renderer dies with a missing hb.wasm. resvg is // a native addon, and node-cron is started from instrumentation.ts. serverExternalPackages: [ 'satori', 'yoga-wasm-web', 'harfbuzzjs', '@resvg/resvg-js', 'node-cron', ], }; export default nextConfig;