fix(nextjs): suppress Turbopack node:crypto export-star warning

Next.js 16 exits with code 1 when Turbopack encounters unhandled warnings.
The node:crypto CJS module triggers an 'unexpected export *' warning through
the image-proxy route because node:crypto exposes its API as CJS exports only
available at runtime. The named imports used at runtime are fine — this is a
static analysis limitation in Turbopack's ESM/CJS interop detection.

Suppress via ignoreIssue (same pattern already used for the NFT list warning)
until upstream resolves the detection in vercel/next.js.
This commit is contained in:
Thomas Camlong committed 2026-07-14 17:36:35 +02:00
1 parent 94a247e24a
commit 70af7dfe7b
1 file changed
+7
+7
View File
@@ -42,6 +42,13 @@ const nextConfig: NextConfig = {
path: "**/*",
title: "Encountered unexpected file in NFT list",
},
{
// node:crypto is CJS; `export *` from it triggers a Turbopack warning
// that exits 1 in Next.js 16. Named imports in image-proxy are fine at
// runtime — suppress until upstream resolves the ESM/CJS detection.
path: "**/*",
title: "unexpected export *",
},
],
},
transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"],