From 2dc7b00afc2c4cd0beeb13548aa4dba66eba4e48 Mon Sep 17 00:00:00 2001 From: M-Gabrielly Date: Mon, 3 Nov 2025 14:56:26 -0300 Subject: [PATCH] fix: remove error message when starting local environment --- susconecta/next.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/susconecta/next.config.mjs b/susconecta/next.config.mjs index f5cbc38..01abbf4 100644 --- a/susconecta/next.config.mjs +++ b/susconecta/next.config.mjs @@ -1,3 +1,9 @@ +import { fileURLToPath } from 'url' +import { dirname } from 'path' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = dirname(__filename) + /** @type {import('next').NextConfig} */ const nextConfig = { eslint: { @@ -9,6 +15,9 @@ const nextConfig = { images: { unoptimized: true, }, + // Define explicit output tracing root to silence Next.js workspace root warning + // Set to the current package directory (susconecta) + outputFileTracingRoot: __dirname, } export default nextConfig