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

const nextConfig: NextConfig = {
  images:{
    remotePatterns: [
      {
        protocol: 'https',
        hostname: 'getgreen.uz',
      },
      {
        protocol: "https",
        hostname: "felix-s3.jscorp.uz"
      },
      {
        protocol: "https",
        hostname: "minio.quyoshli.uz"
      },
      {
       protocol: 'http',
       hostname: '185.228.88.227',
       port: '9000',
       pathname: '/**',
     },
    ]
  },
  devIndicators: false,
  eslint: {
    ignoreDuringBuilds: true,
  },
  typescript: {
    ignoreBuildErrors: true,
  },
};
const withNextIntl = createNextIntlPlugin("./src/shared/config/i18n/request.ts")

export default withNextIntl(nextConfig);
