next.config.js 397 B

12345678910111213141516171819
  1. const withBundleAnalyzer =
  2. process.env.ANALYZE === "true"
  3. ? require("@next/bundle-analyzer")({
  4. enabled: process.env.ANALYZE === "true",
  5. })()
  6. : x => x;
  7. /**
  8. * @type {import('next').NextConfig}
  9. */
  10. const config = {
  11. reactStrictMode: false,
  12. productionBrowserSourceMaps: true,
  13. compiler: {
  14. styledComponents: true,
  15. },
  16. };
  17. module.exports = withBundleAnalyzer(config);