async function vueToString(root, rootProperties) {
  const result = await serverRenderer.renderToString(
    vue.createSSRApp(root, rootProperties)
  )
  // Remove SSR comments used to hydrate.
  return result.replaceAll(/<!--[[\]]-->/g, '')
}
@param {Component} root
  Component.
@param {Record<string, unknown> | null | undefined} [rootProperties]
  Props.
@returns {Promise<string>}
  HTML.