Skip to content

Commit

Permalink
feat(nextjs): add migration for Next.js 13.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Apr 18, 2023
1 parent 81f5603 commit df2ceee
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/next/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,15 @@
"alwaysAddToPackageJson": false
}
}
},
"16.0.0": {
"version": "16.0.0-beta.0",
"packages": {
"next": {
"version": "13.3.0",
"alwaysAddToPackageJson": false
}
}
}
}
}
8 changes: 8 additions & 0 deletions packages/react/plugins/storybook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]),
Expand Down

0 comments on commit df2ceee

Please sign in to comment.