jsoncrack.com/next.config.js
2023-03-08 12:10:09 +03:00

20 lines
397 B
JavaScript

const withBundleAnalyzer =
process.env.ANALYZE === "true"
? require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
})()
: x => x;
/**
* @type {import('next').NextConfig}
*/
const config = {
reactStrictMode: false,
productionBrowserSourceMaps: true,
compiler: {
styledComponents: true,
},
};
module.exports = withBundleAnalyzer(config);