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.

42 lines
985 B

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. 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. ],
  28. },
  29. ...(process.env.APPLICATION_MODE === 'production' && {
  30. typescript: {
  31. ignoreBuildErrors: true,
  32. },
  33. eslint: {
  34. ignoreDuringBuilds: true,
  35. },
  36. }),
  37. };
  38. module.exports = nextConfig;