portal-vue icon indicating copy to clipboard operation
portal-vue copied to clipboard

Add support for SSG

Open xaddict opened this issue 2 years ago • 0 comments

portal-vue can be used in Nuxt and it works great in Server Side Rendered Mode and Live mode, but it breaks in Static Site Generator mode where the contents cannot be pre-rendered by the script Nuxt uses to do so.

When hydration works, the contents get inserted as soon as the javascript kicks in but it would be a major help if PortalVue supported pre-rendered static pages through Nuxt. This would make dynamic header images in Nuxt sites way easier to implement.

PS. I'm not sure if this is even possible while also supporting Vue, and I'm not sure if this is a Nuxt problem or a PortalVue problem. I just though to ask here.

xaddict avatar May 25 '22 23:05 xaddict