[英]Prerendering Vue? Nuxt.js or plugin, what is better for existing website
I have webiste which is available in the internet.我有网站,可以在互联网上找到。 Front is written in Vue.js and CMS is created using Laravel (PHP).
Front 使用 Vue.js 编写,CMS 使用 Laravel (PHP) 创建。 These are separate applications.
这些是单独的应用程序。 Unfortunatelly Google dosen't see the page because of lack of SEO (yeah. Vue), The website is big, has a lot of routes.
不幸的是,由于缺乏 SEO(是的。Vue),谷歌没有看到该页面,该网站很大,有很多路线。 fetches data from API ex.
从 API 前获取数据。 for a blog.
一个博客。 Here is my question?
这是我的问题? What is a better solution?
什么是更好的解决方案? Move website to Nuxt.js or use some fancy plugin like https://github.com/chrisvfritz/prerender-spa-plugin and fetch data from API.
将网站移动到 Nuxt.js 或使用一些花哨的插件,如https://github.com/chrisvfritz/prerender-spa-plugin并从 API 获取数据。 I'll be gratefull for any tips!
我将不胜感激任何提示!
Use @prerenderer/renderer-puppeteer
if: You're prerendering up to a couple hundred pages and want accurate results.在以下情况下使用
@prerenderer/renderer-puppeteer
:您要预渲染多达几百页并想要准确的结果。
Use @prerenderer/renderer-jsdom
if: You need to prerender thousands upon thousands of pages, but quality isn't all that important, and you're willing to work around issues for more advanced cases.在以下情况下使用
@prerenderer/renderer-jsdom
:您需要预渲染成千上万的页面,但质量并不是那么重要,并且您愿意为更高级的案例解决问题。 (Programmatic SVG support, etc.) (可编程SVG支持等)
Let me try to put my two cents here.让我试着把我的两分钱放在这里。 As far as I know, here are two ways to rendering statically on your server using vue.
据我所知,这里有两种使用 vue 在服务器上静态渲染的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.