next.config.mjs 1.6 KB

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