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.

45 lines
1.1 KiB

4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
3 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. typescript: {
  13. ignoreBuildErrors: true,
  14. },
  15. images: {
  16. domains: [
  17. 'via.placeholder.com',
  18. 'res.cloudinary.com',
  19. 's3.amazonaws.com',
  20. '18.141.64.26',
  21. '127.0.0.1',
  22. '127.0.0.1:8000',
  23. 'localhost',
  24. 'picsum.photos',
  25. 'pickbazar-sail.test',
  26. 'pickbazarlaravel.s3.ap-southeast-1.amazonaws.com',
  27. 'lh3.googleusercontent.com',
  28. 'chawkbazarlaravel.s3.ap-southeast-1.amazonaws.com',
  29. '127.0.0.1:8000',
  30. "fastly.picsum.photos",
  31. "mesbahi.nwhco.ir"
  32. ],
  33. },
  34. eslint: {
  35. ignoreDuringBuilds: true, // نادیده گرفتن هشدارهای ESLint
  36. },
  37. typescript: {
  38. ignoreBuildErrors: true, // نادیده گرفتن خطاهای TypeScript
  39. },
  40. };
  41. module.exports = nextConfig;