It is currently impossible to append html to head or body tags using vue-ssr package's VueSSR.createApp. In order to allow packages such as vue-meta to work in SSR, I have made these changes:
Added the possibility of returning head and body strings (along with js and app) which will be appended to their respective tag.
Added the possibility of returning an appendHtml callback allowing to create head, body or js strings after the renderer as generated the app. This is required with vue-meta which only returns meta once the app as been rendered.
Here is an example of what would be possible with these changes:
It is currently impossible to append html to
head
orbody
tags using vue-ssr package'sVueSSR.createApp
. In order to allow packages such as vue-meta to work in SSR, I have made these changes:head
andbody
strings (along withjs
andapp
) which will be appended to their respective tag.appendHtml
callback allowing to createhead
,body
orjs
strings after the renderer as generated the app. This is required with vue-meta which only returns meta once the app as been rendered.Here is an example of what would be possible with these changes:
Partially fixes #149. As far as I know, Meteor doesn't allow
html
orbody
attributes to be edited on the server.