old_contents: const withOffline = require("next-offline");
  
  const nextConfig = {
    target: "serverless",
    future: {
      webpack5: true,
    },
    workboxOpts: {
      swDest: "static/service-worker.js",
      runtimeCaching: [
        {
          urlPattern: /^https?.*/,
          handler: "NetworkFirst",
          options: {
            cacheName: "https-calls",
            networkTimeoutSeconds: 15,
            expiration: {
              maxEntries: 150,
              maxAgeSeconds: 30 * 24 * 60 * 60
            },
            cacheableResponse: {
              statuses: [0, 200]
            }
          }
        }
      ]
    }
  };
  
  module.exports = withOffline(nextConfig);
  
new_contents: const withOffline = require("next-offline");
  
  const nextConfig = {
    target: "serverless",
    workboxOpts: {
      runtimeCaching: [
        {
          urlPattern: /^https?.*/,
          handler: "NetworkFirst",
          options: {
            cacheName: "offlineCache",
            expiration: {
              maxEntries: 200
            }
          }
        }
      ]
    }
  };
  
  module.exports = withOffline(nextConfig);
  
subject: Swap back to webpack 4, adjust next-offline