import { NextConfig } from 'next'
import createNextIntlPlugin from 'next-intl/plugin'

const withNextIntl = createNextIntlPlugin({
  experimental: {
    createMessagesDeclaration: './messages/en.json'
  }
})

const config: NextConfig = {
  images: {
    remotePatterns: [
      {
        hostname: 'xmenuback.phoenitech.sy',
        port: '',
        pathname: '/**',
        search: ''
      }
    ]
  }
}

export default withNextIntl(config)
