Skip to content

Commit

Permalink
feat(nextjs): add migration for Next.js 13.3.0 (#16370)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored Apr 18, 2023
1 parent a7bc1c6 commit ced3ab9
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

1 comment on commit ced3ab9

@vercel
Copy link

@vercel vercel bot commented on ced3ab9 Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.