mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
20 lines
397 B
JavaScript
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);
|