From e2b7f4e04a6c06fc067d606d1035a0275b677d44 Mon Sep 17 00:00:00 2001 From: mnajdova Date: Thu, 29 Aug 2024 15:10:48 +0200 Subject: [PATCH] fix the config --- next.config.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index 8ca6c3b..5c9ca5d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,9 @@ // next.config.mjs import {withPigment} from '@pigment-css/nextjs-plugin'; +import * as MUI from '@mui/material'; +const theme = MUI.createTheme({}); /** @type {import('next').NextConfig} */ const nextConfig = { output: 'export', @@ -15,7 +17,8 @@ const nextConfig = { * @type {import('@pigment-css/nextjs-plugin').PigmentOptions} */ const pigmentConfig = { - // transformLibraries: ['@mui/material'], + transformLibraries: ['@mui/material'], + theme, }; export default withPigment(nextConfig, pigmentConfig);