const withPlugins = require('next-compose-plugins')
const optimizedImages = require('next-optimized-images')
const withCSS = require('@zeit/next-css')

const nextConfig = {
  target: 'serverless',
  exportPathMap: function() {
    return {
      '/': { page: '/' },
    }
  },
}
module.exports = withPlugins(
  [
    [withCSS, {}],
    [
      optimizedImages,
      {
        optimizeImagesInDev: true,
      },
    ],
  ],
  nextConfig,
)

const withPlugins = require('next-compose-plugins')
const optimizedImages = require('next-optimized-images')
const withCSS = require('@zeit/next-css')

const nextConfig = {
  target: 'server',
  exportPathMap: function() {
    return {
      '/': { page: '/' },
    }
  },
}
module.exports = withPlugins(
  [
    [withCSS, {}],
    [
      optimizedImages,
      {
        optimizeImagesInDev: true,
      },
    ],
  ],
  nextConfig,
)

Set next target to server
Set next target to server
