You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.0 KiB

4 weeks ago
4 weeks ago
  1. /** @type {import('next').NextConfig} */
  2. const { i18n } = require('./next-i18next.config');
  3. // const runtimeCaching = require('next-pwa/cache');
  4. // const withPWA = require('next-pwa')({
  5. // disable: process.env.NODE_ENV === 'development',
  6. // dest: 'public',
  7. // runtimeCaching,
  8. // });
  9. const nextConfig = {
  10. reactStrictMode: true,
  11. i18n,
  12. images: {
  13. domains: [
  14. 'via.placeholder.com',
  15. 'res.cloudinary.com',
  16. 's3.amazonaws.com',
  17. '18.141.64.26',
  18. '127.0.0.1',
  19. '127.0.0.1:8000',
  20. 'localhost',
  21. 'picsum.photos',
  22. 'pickbazar-sail.test',
  23. 'pickbazarlaravel.s3.ap-southeast-1.amazonaws.com',
  24. 'lh3.googleusercontent.com',
  25. 'chawkbazarlaravel.s3.ap-southeast-1.amazonaws.com',
  26. '127.0.0.1:8000',
  27. "fastly.picsum.photos",
  28. "mesbahi.nwhco.ir"
  29. ],
  30. },
  31. ...(process.env.APPLICATION_MODE === 'production' && {
  32. typescript: {
  33. ignoreBuildErrors: true,
  34. },
  35. eslint: {
  36. ignoreDuringBuilds: true,
  37. },
  38. }),
  39. };
  40. module.exports = nextConfig;