From 121faf89c3a1547140add23a90eb1c35a25a4ea5 Mon Sep 17 00:00:00 2001 From: ArraysID Date: Sat, 10 May 2025 16:26:32 +0700 Subject: [PATCH] fix: supress scss deps warning --- apps/landing/next.config.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/apps/landing/next.config.js b/apps/landing/next.config.js index 7f7d4ff..71243d4 100644 --- a/apps/landing/next.config.js +++ b/apps/landing/next.config.js @@ -1,20 +1,18 @@ -//@ts-check - -// eslint-disable-next-line @typescript-eslint/no-var-requires const { composePlugins, withNx } = require('@nx/next'); const { withPayload } = require('@payloadcms/next/withPayload'); -/** - * @type {import('@nx/next/plugins/with-nx').WithNxOptions} - **/ +/** @type {import('@nx/next/plugins/with-nx').WithNxOptions} */ const nextConfig = { - nx: { - // Set this to true if you would like to to use SVGR - // See: https://github.com/gregberge/svgr - svgr: false, + nx: { svgr: false }, + sassOptions: { + quietDeps: true, + logger: { + warn: () => {}, + }, + }, + webpack(config) { + return config; }, }; -const plugins = [withNx, withPayload]; - -module.exports = composePlugins(...plugins)(nextConfig); +module.exports = composePlugins(withNx, withPayload)(nextConfig);