next.config.mjs 833 B

1234567891011121314151617181920212223242526272829303132
  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. images: {
  16. remotePatterns: [
  17. {
  18. protocol: "https",
  19. hostname: "9f.com",
  20. pathname: "/img/**",
  21. },
  22. {
  23. protocol: "https",
  24. hostname: "images.hibigwin.com",
  25. pathname: "/9f/**",
  26. },
  27. ],
  28. },
  29. };
  30. export default withNextIntl(nextConfig);