Files
2026-07-13 12:36:27 +08:00

20 lines
502 B
JavaScript

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;