Skip to content

Commit

Permalink
fix(nextjs): read serverActions config safely (#16909)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored May 10, 2023
1 parent 1e891f5 commit c9d73d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/plugins/with-nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function withNx(
forNextVersion('>=13.4.0', () => {
process.env['__NEXT_PRIVATE_PREBUNDLED_REACT'] =
// Not in Next 13.3 or earlier, so need to access config via string
_nextConfig.experimental['serverActions'] ? 'experimental' : 'next';
_nextConfig.experimental?.['serverActions'] ? 'experimental' : 'next';
});

return async (phase: string) => {
Expand Down

1 comment on commit c9d73d2

@vercel
Copy link

@vercel vercel bot commented on c9d73d2 May 10, 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-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.