upgrAde blog to next.js 14.1

vimAl_kumar
posted on Feb 16, 2024
views
1 min read (153 words)
i have not update my blog for almost 8 mouths from may 2023. next.js has already been upgraded to the verion of 14.1.0 so it is a time to start upgrading my blog to the latest version of next.js.
upgrAde from 13.4 to 14.1
-
- switch pages router to App router
-
- use metadata Api to define metadata, such as
meta
andlink
tags inside your Htmlhead
element for improved seo and web shareability.
- use metadata Api to define metadata, such as
-
- create an
opengraph-image
ortwitter-image
route to generate a route segment's shared image
- create an
-
- switch prisma orm to serverless kv with redis Api powered by upstash
-
- replace
heroicons
withreact-icons
- replace
conclusion
i am very satisfied with the Next.js v14.1 design philosophy, especially in metadata Api and open graph image generation. However, contentlayer was not maintained for a long time. i was trying to find another way to substitute it.