{"size": 748, "ext": "js", "max_stars_repo_path": "next.config.js", "max_stars_repo_name": "imane-0208/Megastore_front", "max_stars_repo_stars_event_min_datetime": "2022-03-28T14:45:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T14:47:37.000Z", "max_issues_repo_path": "next.config.js", "max_issues_repo_name": "imane-0208/Megastore_front", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "next.config.js", "max_forks_repo_name": "imane-0208/Megastore_front", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.9333333333, "max_line_length": 87, "alphanum_fraction": 0.614973262}
// /** @type {import('next').NextConfig} */
// const nextConfig = {
//   reactStrictMode: true,
// }

// module.exports = nextConfig
const withPWA = require('next-pwa');
const runtimeCaching = require('next-pwa/cache');

const settings = {
  // swcMinify: true,
  // devIndicators: {
  //   autoPrerender: false,
  // },
  images: {
    domains: ['assets.example.com','i.ibb.co'],
  },
  pwa: {
    dest: 'public',
    // mode: 'production',
    // disable: process.env.NODE_ENV === "development",
    // register: true,
    // skipWaiting: true,
    // runtimeCaching,
    // buildExcludes: [/middleware-manifest\.json$/],
  },
  // reactStrictMode: true,
};

module.exports = process.env.NODE_ENV === 'development' ? settings : withPWA(settings);