From a2702d647c060e707172019719c7682577b0a55e Mon Sep 17 00:00:00 2001 From: Pooria Setayesh Date: Sat, 4 May 2024 12:12:27 +0330 Subject: [PATCH] fix: resolve not shown image problem in the home page slider --- next.config.mjs | 3 +- package.json | 3 +- .../components/SliderItem/SliderItem.tsx | 1 + yarn.lock | 329 ++++++++++++++++-- 4 files changed, 303 insertions(+), 33 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 99ff20e..286ec1a 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -4,8 +4,7 @@ import nextIntlPlugin from 'next-intl/plugin'; const withNextIntl = nextIntlPlugin('./src/i18n.ts'); const nextConfig = { - output: 'standalone', - reactStrictMode: true, + reactStrictMode: false, images: { domains: ['via.placeholder.com'], remotePatterns: [ diff --git a/package.json b/package.json index 9b8d18f..ee0dd46 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "react-dom": "^18", "react-hook-form": "^7.51.3", "react-otp-input": "^3.1.1", + "sharp": "^0.33.3", "stylis": "^4.3.1", "stylis-plugin-rtl": "^2.1.1", "swiper": "^11.1.1", @@ -68,4 +69,4 @@ "node": "20.12.2", "yarn": "4.1.1" } -} \ No newline at end of file +} diff --git a/src/components/HomePageSlider/components/SliderItem/SliderItem.tsx b/src/components/HomePageSlider/components/SliderItem/SliderItem.tsx index dbaa405..d3a6c92 100644 --- a/src/components/HomePageSlider/components/SliderItem/SliderItem.tsx +++ b/src/components/HomePageSlider/components/SliderItem/SliderItem.tsx @@ -16,6 +16,7 @@ const SliderItem: FC = (props) => { }} >