next.config.mjs 564 B

12345678910111213141516171819202122232425
  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. reactStrictMode: true,
  8. transpilePackages: ['antd-mobile'],
  9. sassOptions: {
  10. prependData: `@import "./src/styles/variables.scss";`
  11. },
  12. images: {
  13. remotePatterns: [
  14. {
  15. protocol: 'https',
  16. hostname: '9f.com',
  17. pathname: '/img/**',
  18. },
  19. ],
  20. },
  21. };
  22. export default withNextIntl(nextConfig);