Currently diving into the world of Next.JS, I've managed to grasp the concept of using getStaticProps to retrieve dynamic data from a headless CMS and integrate it into my JSX templates. However, I'm unsure about how to utilize this dynamic content in my CSS styling. Typically in other static site generators, you can leverage the template engine to embed dynamic content within your CSS like so:
body {
background: url('{{urlFromMyHeadlesCMS}}')
}
I've brainstormed a few potential solutions but they all seem somewhat clunky, such as applying styles through JavaScript or resorting to string interpolation with styled components. Is there a more elegant and standard approach to achieve this task within Next.JS? Could this be the perfect opportunity for me to delve into learning SASS once and for all?