next.config.mjs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. quietDeps: true,
  14. prependData: `@import "./src/styles/variables.scss";`,
  15. },
  16. logging: {
  17. fetches: {
  18. fullUrl: true,
  19. },
  20. },
  21. experimental: {
  22. staleTimes: {
  23. dynamic: 0,
  24. static: 180,
  25. },
  26. },
  27. images: {
  28. domains: ["9f.com", "bcwin.s3.sa-east-1.amazonaws.com", "192.168.0.237"],
  29. remotePatterns: [
  30. {
  31. protocol: "https",
  32. hostname: "9f.com",
  33. pathname: "/img/**",
  34. },
  35. {
  36. protocol: "https",
  37. hostname: "images.hibigwin.com",
  38. pathname: "/9f/**",
  39. },
  40. {
  41. protocol: "https",
  42. hostname: "bcwin.s3.sa-east-1.amazonaws.com",
  43. pathname: "*",
  44. },
  45. ],
  46. },
  47. };
  48. export default withNextIntl(nextConfig);