/** @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: {
        remotePatterns: [
            {
                protocol: "https",
                hostname: "9f.com",
                pathname: "/img/**",
            },
            {
                protocol: "https",
                hostname: "images.hibigwin.com",
                pathname: "/9f/**",
            },
        ],
    },
};

export default withNextIntl(nextConfig);
