Opt-in the Next.js Runtime v5
(@netlify/plugin-nextjs@5.0.0-rc.4
) resolved the issue.
- Re-deploying your Next.js application on Netlify
- Opt-In to Next.js Runtime v5
- After the re-deployment, navigate to the Deploys Section on Netlify
- Look for the Opt-In button related to Next.js Runtime v5 and click it
- During the deployment, you may encounter a warning about outdated plugins
1:56:31 PM: ❯ Outdated plugins
1:56:31 PM: - @netlify/plugin-nextjs@4.41.3: latest version is 5.0.0-rc.4
1:56:31 PM: To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)
-
Remove and re-add Next.js Runtime under site configuration → Build & deploy → Build settings → Configure → Remove (next to Next.js) → Save → Configure → Select → Next.js
-
Trigger another re-deployment and the
@netlify/plugin-nextjs@5.0.0-rc.4
was added
1:58:59 PM: ❯ Installing plugins
1:58:59 PM: - @netlify/plugin-nextjs@5.0.0-rc.4