const withImages = require('next-images')

module.exports = {
  ...withImages(),
  // Target must be serverless (for use with netlify)
  target: "serverless",
};

@@ -1,83 +1,364 @@
-const withImages = require('next-images')%0A%0Amodule.exports = %7B%0A  ...withImages()
+module.exports = %7B%0A  // Error: Cannot find module 'ts-tiny-invariant'%0A  // netlify is working on it...%0A  webpack: (config, %7B isServer %7D ) =%3E %7B%0A    if (isServer) %7B%0A      // When working on webpack5 there was this runtime-error:%0A      // Module %22ts-tiny-invariant%22 was not found. PR...%0A      config.externals.push('ts-tiny-invariant')%0A    %7D%0A    return config%0A  %7D
 ,%0A  

fix serverless build, remove obsolete use of next-images