mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
only set next/future/image mocks from next.js 12.2
This commit is contained in:
parent
bafc8955c6
commit
4426b0718f
@ -54,7 +54,7 @@ if (semver.satisfies(process.env.__NEXT_VERSION!, '^13.0.0')) {
|
||||
});
|
||||
}
|
||||
|
||||
if (semver.satisfies(process.env.__NEXT_VERSION!, '^12.0.0')) {
|
||||
if (semver.satisfies(process.env.__NEXT_VERSION!, '^12.2.0')) {
|
||||
const NextFutureImage = require('next/future/image') as typeof _NextImage;
|
||||
const OriginalNextFutureImage = NextFutureImage.default;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user