4
votes

I'm studying nuxt. I leave a question because I have a question while studying. nuxt can ssr, but ssr is known as server side rendering. Then, I wonder where the server is. Because vue is built on node, is the server automatically made into node server? And, how is SEO possible if we make it with nuxt? I understand that it is possible if you make html with MPA. However, using nuxt makes SEO possible. So, when you create a project with nuxt, does the client make it an MPA when it makes the first request?

1

1 Answers

1
votes
  • where the server is?

Depends... Nuxt include a node server (nuxt), but you can during the nuxt instalation merge them with other node server frameworks

  • when use nuxt alone or with other server-side framework?

Depends of your needs, knowledge and project.

For example I usually use nuxt alone, more apollo graphql it give me all I need. but for Shopify apps, the admin embed login is write for Koa and super easy to use so I prefers nuxt + koa when I develop this kind of app.

  • what means ssr?

server side rendering, the important thing is Rendering, that means nuxt (or nuxt + extra server-side framework) read the vue (js) code in the server and rendered them in Html code, after that it send the html to the client machine.

This is the reason why SEO is possible, when a web crawler visit the site it receive a fulfilled HTML page easy to read and clasify.

Nuxt has a really extensive and easy to understand guide, I recomend you follow them. Example you can use Head for edit the Header of the page,