Skip to content

upgrade Next.js 12 to 14, React 17 to 18 - #222

Open
nilmeh wants to merge 1 commit into
masterfrom
chore/upgrade-nextjs-14
Open

upgrade Next.js 12 to 14, React 17 to 18#222
nilmeh wants to merge 1 commit into
masterfrom
chore/upgrade-nextjs-14

Conversation

@nilmeh

@nilmeh nilmeh commented Mar 6, 2026

Copy link
Copy Markdown
Contributor
- Upgrade next, react, react-dom, eslint-config-next to v14/v18
- Remove unused next-plugin-transpile-modules and export script
- Run next-image-to-legacy-image codemod (24 files)
- Run new-link codemod for Next.js 13+ Link API
- Migrate images.domains to images.remotePatterns in next.config
- Move GA/Chartbeat Script tags from _document to _app (afterInteractive)
- Keep Broadstreet beforeInteractive in _document
- Add baseUrl to tsconfig.json for module resolution
- Fix ESLint rule: next/no-img-element -> @next/next/no-img-element
- Add eslint.ignoreDuringBuilds for pre-existing lint errors

Note: We upgraded to Next.js 14 for now as Next.js 15 would require React 19 which has different behavior in some cases and stricter peer dependencies so that upgrade was not made for now

    - Upgrade next, react, react-dom, eslint-config-next to v14/v18
    - Remove unused next-plugin-transpile-modules and export script
    - Run next-image-to-legacy-image codemod (24 files)
    - Run new-link codemod for Next.js 13+ Link API
    - Migrate images.domains to images.remotePatterns in next.config
    - Move GA/Chartbeat Script tags from _document to _app (afterInteractive)
    - Keep Broadstreet beforeInteractive in _document
    - Add baseUrl to tsconfig.json for module resolution
    - Fix ESLint rule: next/no-img-element -> @next/next/no-img-element
    - Add eslint.ignoreDuringBuilds for pre-existing lint errors
@nilmeh
nilmeh requested a review from NarekGermirlian March 6, 2026 20:02
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.

1 participant