SSR server rendering (Nuxt server rendering application deployment)

Nuxt static application deployment

Prerender-spa-plugin

If you are only using SEO to improve a few marketing pages (e.g. /, /about, /contact, etc.), then you may need pre-render. Instead of using a Web server to compile HTML dynamically in real time, you use pre-rendering to simply generate static HTML files for specific routes at build time. The advantage is that it’s easier to set up pre-render, and you can treat your front end as a completely static site.

Phantomjs deals with crawlers

Phantomjs is a headless browser based on the WebKit kernel, meaning it has no UI, meaning it’s just a browser, except for clicking, page-turning, and other human-related actions that require programming.

conclusion

  1. If the construction of a large website, such as mall class, do not hesitate to directly on the SSR server rendering, of course, there are corresponding pits for you, the community is more mature, good English, all problems are solved.
  2. If it’s just a personal blog or a company website, you can do all three.

Reference article: juejin.cn/post/693308…