2023-03-08 12:10:09 +03:00
|
|
|
const withBundleAnalyzer =
|
|
|
|
process.env.ANALYZE === "true"
|
|
|
|
? require("@next/bundle-analyzer")({
|
|
|
|
enabled: process.env.ANALYZE === "true",
|
|
|
|
})()
|
|
|
|
: x => x;
|
2023-01-29 19:45:09 +03:00
|
|
|
|
2022-04-27 13:56:24 +03:00
|
|
|
/**
|
|
|
|
* @type {import('next').NextConfig}
|
|
|
|
*/
|
2023-01-29 19:45:09 +03:00
|
|
|
const config = {
|
2022-12-11 14:27:07 +03:00
|
|
|
reactStrictMode: false,
|
2023-02-09 09:22:11 +03:00
|
|
|
productionBrowserSourceMaps: true,
|
2023-01-28 17:17:21 +03:00
|
|
|
compiler: {
|
2023-01-29 19:45:09 +03:00
|
|
|
styledComponents: true,
|
|
|
|
},
|
2022-04-27 13:56:24 +03:00
|
|
|
};
|
2023-01-29 19:45:09 +03:00
|
|
|
|
|
|
|
module.exports = withBundleAnalyzer(config);
|