import path from "node:path"; import { fileURLToPath } from "node:url"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); /** * @type {import('next').NextConfig} **/ const nextConfig = { reactStrictMode: true, // Allow cross-origin requests from specific origins in development allowedDevOrigins: ["localhost", "127.0.0.1"], // Set workspace root to this project directory outputFileTracingRoot: __dirname, // Cache Components enabled - dynamic [id] routes use DynamicMarker pattern // See: app/dashboard/sessions/[id]/page.tsx and app/platform/companies/[id]/page.tsx cacheComponents: true, }; export default nextConfig;