mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +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 NextFutureImage = require('next/future/image') as typeof _NextImage;
|
||||||
const OriginalNextFutureImage = NextFutureImage.default;
|
const OriginalNextFutureImage = NextFutureImage.default;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user