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

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

const nextConfig: NextConfig = {
  /* config options here */
  allowedDevOrigins: [
    'nonrevolving-unwaning-arminda.ngrok-free.dev',
    // Add common ngrok patterns for development
  ],
  eslint: {
    ignoreDuringBuilds: true
  },
  images: {
    remotePatterns: [
      {
        protocol: "https",
        hostname: "api.builder.io",
        port: "",
        pathname: "/api/v1/image/assets/**"
      }
    ]
  }
}

export default withNextIntl(nextConfig)
