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);