Skip to content

Commit

Permalink
fix: resolve not shown image problem in the home page slider
Browse files Browse the repository at this point in the history
  • Loading branch information
pooriaset committed May 4, 2024
1 parent 11d3ca2 commit a2702d6
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 33 deletions.
3 changes: 1 addition & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -68,4 +69,4 @@
"node": "20.12.2",
"yarn": "4.1.1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const SliderItem: FC<IHomePageSliderItem> = (props) => {
}}
>
<Image
priority
width={2800}
height={300}
src={props.imageUrl}
Expand Down
Loading

0 comments on commit a2702d6

Please sign in to comment.