/** @type {import('next').NextConfig} */ import bundleAnalyzer from "@next/bundle-analyzer"; import createNextIntlPlugin from "next-intl/plugin"; const withNextIntl = createNextIntlPlugin(); /** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", productionBrowserSourceMaps: true, reactStrictMode: false, env: { BUILD_ENV: process.env.BUILD_ENV, }, transpilePackages: ["antd-mobile"], sassOptions: { quietDeps: true, prependData: `@import "./src/styles/variables.scss";`, }, logging: { fetches: { fullUrl: true, }, }, experimental: { staleTimes: { dynamic: 0, static: 180, }, scrollRestoration: true, optimizePackageImports: [ "dayjs", "bignumber.js", "@lucky-canvas/react", "@number-flow/react", "framer-motion", "next-intl", "next", "next-themes", "react", "react-dom", "swiper", "zustand", ], }, images: { domains: [ "minio.tiktokjakjkl.icu", "bcwin.s3.sa-east-1.amazonaws.com", "192.168.0.237", "static.tiktokjakjkl.icu", ], remotePatterns: [ { protocol: "https", hostname: "minio.tiktokjakjkl.icu", pathname: "*", }, { protocol: "https", hostname: "images.hibigwin.com", pathname: "*", }, { protocol: "https", hostname: "bcwin.s3.sa-east-1.amazonaws.com", pathname: "*", }, { protocol: "https", hostname: "static.tiktokjakjkl.icu", pathname: "*", }, ], }, }; const withBundleAnalyzer = bundleAnalyzer({ enabled: process.env.ANALYZE === "true", }); export default withBundleAnalyzer(withNextIntl(nextConfig));