next.config.mjs 1.5 KB

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