next.config.mjs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /** @type {import('next').NextConfig} */
  2. import createNextIntlPlugin from "next-intl/plugin";
  3. const withNextIntl = createNextIntlPlugin();
  4. /** @type {import('next').NextConfig} */
  5. const nextConfig = {
  6. output: "standalone",
  7. reactStrictMode: true,
  8. env: {
  9. BUILD_ENV: process.env.BUILD_ENV,
  10. },
  11. transpilePackages: ["antd-mobile"],
  12. sassOptions: {
  13. prependData: `@import "./src/styles/variables.scss";`,
  14. },
  15. logging: {
  16. fetches: {
  17. fullUrl: true,
  18. },
  19. },
  20. experimental: {
  21. staleTimes: {
  22. dynamic: 0,
  23. static: 180,
  24. },
  25. },
  26. images: {
  27. domains: ["9f.com", "bcwin.s3.sa-east-1.amazonaws.com", "192.168.0.237"],
  28. remotePatterns: [
  29. {
  30. protocol: "https",
  31. hostname: "9f.com",
  32. pathname: "/img/**",
  33. },
  34. {
  35. protocol: "https",
  36. hostname: "images.hibigwin.com",
  37. pathname: "/9f/**",
  38. },
  39. {
  40. protocol: "https",
  41. hostname: "bcwin.s3.sa-east-1.amazonaws.com",
  42. pathname: "*",
  43. },
  44. ],
  45. },
  46. };
  47. export default withNextIntl(nextConfig);