From 15dcfae51cf157202aed7c46554a10bd13af7c78 Mon Sep 17 00:00:00 2001 From: Roozbeh Karimi Date: Wed, 1 Oct 2025 20:32:49 -0400 Subject: [PATCH] fix for next.config --- frontend/next.config.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 18a719e..175e148 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -1,4 +1,10 @@ /** @type {import('next').NextConfig} */ +import path from "path"; +import { fileURLToPath } from "url"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + const nextConfig = { eslint: { ignoreDuringBuilds: true, @@ -6,7 +12,7 @@ const nextConfig = { typescript: { ignoreBuildErrors: true, }, - outputFileTracingRoot: require("path").join(__dirname, "../"), + outputFileTracingRoot: path.join(__dirname, "../"), }; export default nextConfig;