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',
})