From 321dae4a47594af83269fa560b375965d7f35763 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 22 May 2022 15:09:39 +0200 Subject: fix: render all images unoptimized in Storybook There is a bug with next/image and Storybook. I was manually adding `unoptimized` to images. Instead we can use a workaround by adding an extra config in Storybook `preview.js` file. --- src/components/organisms/layout/overview.stories.tsx | 1 - 1 file changed, 1 deletion(-) (limited to 'src/components/organisms/layout/overview.stories.tsx') diff --git a/src/components/organisms/layout/overview.stories.tsx b/src/components/organisms/layout/overview.stories.tsx index 1139350..26f7ba0 100644 --- a/src/components/organisms/layout/overview.stories.tsx +++ b/src/components/organisms/layout/overview.stories.tsx @@ -52,7 +52,6 @@ const cover = { height: 480, src: 'http://placeimg.com/640/480/cats', width: 640, - unoptimized: true, }; const meta: OverviewMeta = { -- cgit v1.2.3