next.config.mjs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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: [
  29. "minio.tiktokjakjkl.icu",
  30. "bcwin.s3.sa-east-1.amazonaws.com",
  31. "192.168.0.237",
  32. "static.tiktokjakjkl.icu",
  33. ],
  34. remotePatterns: [
  35. {
  36. protocol: "https",
  37. hostname: "minio.tiktokjakjkl.icu",
  38. pathname: "*",
  39. },
  40. {
  41. protocol: "https",
  42. hostname: "images.hibigwin.com",
  43. pathname: "*",
  44. },
  45. {
  46. protocol: "https",
  47. hostname: "bcwin.s3.sa-east-1.amazonaws.com",
  48. pathname: "*",
  49. },
  50. {
  51. protocol: "https",
  52. hostname: "static.tiktokjakjkl.icu",
  53. pathname: "*",
  54. },
  55. ],
  56. },
  57. };
  58. export default withNextIntl(nextConfig);