next.config.mjs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. domains: ["9f.com", "images.hibigwin.com", "192.168.0.237"],
  17. remotePatterns: [
  18. {
  19. protocol: "https",
  20. hostname: "9f.com",
  21. pathname: "/img/**",
  22. },
  23. {
  24. protocol: "https",
  25. hostname: "images.hibigwin.com",
  26. pathname: "/9f/**",
  27. },
  28. {
  29. protocol: "http",
  30. hostname: "192.168.0.237",
  31. pathname: "/bcwin/**",
  32. },
  33. ],
  34. },
  35. };
  36. export default withNextIntl(nextConfig);