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.

54 lines
1.3 KiB

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