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.

50 lines
1.2 KiB

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