123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /** @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));
|