express-vue / express-vue

Vue rendering engine for Express.js. Use .Vue files as templates using streams

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updating Head, Metas or StructureData from components

dseeker opened this issue · comments

Maybe there is a way of doing this and I couldn't get it to work?

I'm trying to make Title, Metas and StructuredData update from inside a component but the SSR output is unaltered by those objects

Perhaps this is out of scope for this project? I found it as an alternative after deploying NUXT to AWS Lambda via Serverless and the archive zip was huge while taking 600ms to respond for any simple request.

With this project express can respond very quickly (100ms) but I am finding I'd have to do all the SSR stuff on routes instead of having them in components. So perhaps I have a wrong expectation?

@dseeker, have a look at https://futureaus.github.io/servue/ it may suit your needs better

It has a different head management system that exists within the <template> and allows child views to pass head & meta to parent layouts.