next.config.mjs 587 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. 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. },
  22. };
  23. export default withNextIntl(nextConfig);