import path from "node:path"; import { fileURLToPath } from "node:url"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, outputFileTracingRoot: __dirname, // Avoid webpack persistent cache on slow/cloud-sync filesystems (macOS ETIMEDOUT on `.next/cache`). webpack: (config) => { config.cache = false; return config; }, }; export default nextConfig;