next.config.js 558 B

12345678910111213141516171819202122232425262728293031
  1. // @ts-check
  2. const withPlugins = require('next-compose-plugins')
  3. const withBundleAnalyzer = require('@next/bundle-analyzer')({
  4. enabled: process.env.ANALYZE === 'true'
  5. })
  6. /**
  7. * @type {import('next').NextConfig}
  8. **/
  9. const nextConfig = {
  10. reactStrictMode: true,
  11. swcMinify: true,
  12. optimizeFonts: true,
  13. i18n: {
  14. locales: ['en-US'],
  15. defaultLocale: 'en-US'
  16. },
  17. api: {
  18. responseLimit: false
  19. },
  20. images: {
  21. domains: [],
  22. formats: ['image/avif', 'image/webp']
  23. }
  24. }
  25. module.exports = withPlugins([[withBundleAnalyzer]], nextConfig)