/** @type {import('next').NextConfig} */
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin();

/** @type {import('next').NextConfig} */
const nextConfig = {
    output: "standalone",
    reactStrictMode: true,
    env: {
        BUILD_ENV: process.env.BUILD_ENV,
    },
    transpilePackages: ["antd-mobile"],
    sassOptions: {
        prependData: `@import "./src/styles/variables.scss";`,
    },
    images: {
        domains: ["9f.com", "images.hibigwin.com", "192.168.0.237"],
        remotePatterns: [
            {
                protocol: "https",
                hostname: "9f.com",
                pathname: "/img/**",
            },
            {
                protocol: "https",
                hostname: "images.hibigwin.com",
                pathname: "/9f/**",
            },
            {
              protocol: "http",
              hostname: "192.168.0.237",
              pathname: "/bcwin/**",
          },
        ],
    },
};

export default withNextIntl(nextConfig);
