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

const nextConfig: NextConfig = {
  output: 'standalone',
  typedRoutes: true,
  serverExternalPackages: ['@prisma/client', 'minio'],
  images: {
    remotePatterns: [
      {
        protocol: 'https',
        hostname: '*.minio.local',
      },
    ],
  },
}

const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts')

export default withNextIntl(nextConfig)
