const withPlugins = require('next-compose-plugins')
const { i18n } = require('./next-i18next.config')

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  i18n
  // webpack: (config, { webpack }) => {
  //   return config
  // },
}

const redirects = {
  async redirects () {
    return [
      {
        source: '/',
        destination: '/home',
        permanent: true
      }
    ]
  }
}

module.exports = withPlugins(
  [
    [redirects]
  ],
  nextConfig
)
