From 21137bd84a55d123fd67590539f239e948e4234e Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Sat, 28 Feb 2026 13:38:03 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20add=20app/=20to=20.gitignore=20=E2=80=94?= =?UTF-8?q?=20prevents=20Next.js=20App=20Router=20conflict?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The production standalone build directory (app/) created by scripts/prepublish.mjs was conflicting with Next.js App Router detection. Next.js prioritizes root app/ over src/app/, causing all routes to return 404 in dev mode. The package.json 'files' field still includes app/, so npm publish is unaffected. --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 9df66354e9..ac765b955e 100644 --- a/.gitignore +++ b/.gitignore @@ -103,6 +103,11 @@ app.log # Backup directories app.__qa_backup/ +# Production standalone build (created by scripts/prepublish.mjs) +# Conflicts with Next.js App Router detection in dev (root app/ shadows src/app/) +# npm publish still includes it via package.json "files" field +app/ + # Electron (subproject dependency lock and build artifacts) electron/package-lock.json electron/dist-electron/