I
I
Igor Koch2017-07-24 14:18:52
JavaScript
Igor Koch, 2017-07-24 14:18:52

How to render vue component on node.js for seo and return html to php?

I was puzzled by the layout of the online store on laravel + vue, I want to make a page with goods on vue,
but I can’t, because Seo indexes only rendered ones, how to implement such a link?
14687a5fe4364b3db289b82f8fd608ee.png
I would also be grateful for alternative solutions to the problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2017-07-24
@amux

https://vuejs.org/v2/guide/ssr.html
very controversial statement. All my sites have been indexed for a long time, even if they are a little more than completely generated in JS.
For example:
https://siahub.info/
https://github.com/S-anasol/siahub/blob/master/res...
dsro.ru/gyazo/images/c2de88a67b0612e620b7cdec56d4.png
Even the text of the buttons on the charts in google shows.

D
Dmitry, 2017-07-24
@backender_ru

so-so option, but what if: cache the layout in the database using the crown and return this cache. you will get laravel + vue and Nodejs to create the cache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question