Server side rendered sites and static sites

Server-side rendered sites are rendered on the server each time the user requests a page, therefore a server is needed to be able to serve the page on each request.
服务器端渲染网站:每次用户请求页面时,在服务器端被渲染,所以需要服务器,以便为每次请求提供页面。

Static sites are very similar to server-side rendered applications with the main difference being that static sites are rendered at build time, therefore no server is needed. Navigating from one page to another is then on the client-side.
静态网站:和服务器端渲染应用很相似,主要的不同是静态网站在构建的时候被渲染,所以不需要服务器,然后在客户端一个页面导航到另一个。

See deployment targets for more info on static and server hosting.
请参阅看部署目标,获取静态和服务器托管更多信息。

  1. export default {
  2. ssr: true // default value
  3. }

Client Side Rendering Only仅客户端渲染

With client side rendering only there is no server-side rendering. Client side rendering means rendering the content in the browser using JavaScript. Instead of getting all of the content from the HTML we just get a basic HTML document with a JavaScript file that will then render the rest of the site using the browser. For client side rendering set ssr to false.
仅仅客户端渲染没有服务器端渲染。客户端渲染意味着在浏览器用javascript渲染内容。代替从HTML获取全部内容,我们只获取一个包含javascrit文件的基本HTML文档,然后使用浏览器渲染网站的其他部分。设置ssr为false为客户端渲染。

  1. export default {
  2. ssr: false
  3. }