next.config.mjs 700 B

123456789101112131415161718192021222324252627282930
  1. /** @type {import('next').NextConfig} */
  2. import createNextIntlPlugin from 'next-intl/plugin';
  3. import path from 'path';
  4. const withNextIntl = createNextIntlPlugin();
  5. /** @type {import('next').NextConfig} */
  6. const nextConfig = {
  7. output: 'standalone',
  8. reactStrictMode: true,
  9. transpilePackages: ['antd-mobile'],
  10. sassOptions: {
  11. prependData: `@import "./src/styles/variables.scss";`
  12. },
  13. images: {
  14. remotePatterns: [
  15. {
  16. protocol: 'https',
  17. hostname: '9f.com',
  18. pathname: '/img/**',
  19. },
  20. {
  21. protocol: 'https',
  22. hostname: 'images.hibigwin.com',
  23. pathname: '/9f/**',
  24. },
  25. ],
  26. },
  27. };
  28. export default withNextIntl(nextConfig);