Server side rendering with head

Viewed 38

Is it possible to do server side rendering only to <head></head> data? I am trying to use feature like next.js:

export async function getServerSideProps(context) {
  return {
    props: {}, // will be passed to the page component as props
  }
}

So, in the express server it will catch the exported function getServerSideProps and set the data in the <head> tag. I don't want every other features of next.js and thus I don't want to use next.js. Is it even possible?

0 Answers
Related