Rajdeep Singh
Nov 4, 2022

--

Every font has a custom config in nextjs; In nextjs, few fonts support all config. You can check manually if the font config does not support nextjs. It shows an error.

const ubuntu = Ubuntu()

// weight

const ubuntu = Ubuntu({

weight: '400',

})

// weight

const ubuntuTwo = Ubuntu({

weight: '400',

})

--

--

Rajdeep Singh
Rajdeep Singh

Written by Rajdeep Singh

Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh

No responses yet