From f85fc46dee2568b1019a87c3f50ba4b9b155c0f2 Mon Sep 17 00:00:00 2001 From: Joonas Tiala Date: Mon, 27 Nov 2023 13:26:23 +0200 Subject: [PATCH] chore: ignore webpack infrastructure warnings as a temporary solution --- apps/nextjs-example/next.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/nextjs-example/next.config.js b/apps/nextjs-example/next.config.js index 24f4ee6..3c16e7e 100644 --- a/apps/nextjs-example/next.config.js +++ b/apps/nextjs-example/next.config.js @@ -1,6 +1,16 @@ import { withContentlayer } from "next-contentlayer"; /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + reactStrictMode: true, + webpack: (config) => { + // TODO: Remove when https://github.com/vercel/next.js/issues/33693 gets resolved + config.infrastructureLogging = { + level: "error", + }; + + return config; + }, +}; export default withContentlayer(nextConfig);