N
N
Nik2017-10-18 10:19:45
JavaScript
Nik, 2017-10-18 10:19:45

How to connect the vue component to the site (without SPA) and set up ssr?

The backend will be in php and will also be assembled on it.
you will need to embed a vue component on the page (responsible for complex filtering on the page), which will need to be fastened with ssr, since this block is important for seo. this is not a spa.
the question is how to implement such a bundle correctly? who faced this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timofey, 2017-11-12
@mr_T

SSR implies the execution of the vue component code on the server, so it’s impossible to do ssr in php. To do this, you need to raise the node server, make a normal build, etc.
2 simpler options:
1) Use prerendering for pages with vue components, which will still require the installation of a node server, but the application itself does not have to be changed.
2) Stupidly duplicate the markup in the component and on the server.
In general, some wonderful silver bullet that will quickly and without hemorrhoids solve the problem does not exist.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question