Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update next to 14 #171

Closed
wants to merge 9 commits into from
Closed

Update next to 14 #171

wants to merge 9 commits into from

Conversation

snigdha-kansal
Copy link
Contributor

Overview

Updated next version from 12.3.1 to 14.2.3
The react and react-dom were updated to their corresponding compatible versions as well.

Changes

  • Starting with Next.js 13, <Link> renders as <a>, so attempting to use <a> as a child is invalid. The new-link codemod automatically upgraded previous version of Next.js to the new <Link> usage. All link elements of the form <Link><a id="link">Home</a></Link> were changed to <Link id="link">Home</Link>. [Reference Link]
  • Starting in Next.js 13, the next/image component has undergone some major changes. These include removing the layout prop in favor of style or className to add support for canonical style prop. The next-image-to-legacy-image codemod automatically changed next/image imports to next/legacy/image. [Reference Link]
  • images.domains was deprecated and replaced by images.remotePatterns in next.config.js.

Possible Changes

  • next/legacy/image can be upgraded to the new next/image once a stable version of the codemod for it has been developed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant