feat(nextjs): add migration for Next.js 13.3.0 (#16370)
This commit is contained in:
parent
a7bc1c6635
commit
ced3ab9c59
@ -307,6 +307,15 @@
|
||||
"alwaysAddToPackageJson": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"16.0.0": {
|
||||
"version": "16.0.0-beta.0",
|
||||
"packages": {
|
||||
"next": {
|
||||
"version": "13.3.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -116,6 +116,14 @@ export const webpack = async (
|
||||
},
|
||||
resolve: {
|
||||
...storybookWebpackConfig.resolve,
|
||||
fallback: {
|
||||
...storybookWebpackConfig.resolve?.fallback,
|
||||
// Next.js and other React frameworks may have server-code that uses these modules.
|
||||
// They are not meant for client-side components so skip the fallbacks.
|
||||
assert: false,
|
||||
path: false,
|
||||
util: false,
|
||||
},
|
||||
plugins: mergePlugins(
|
||||
...((storybookWebpackConfig.resolve.plugins ??
|
||||
[]) as ResolvePluginInstance[]),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user