Nuxt.js: Is nuxt.js as static site generator practical for large site with many pages?

Created on 23 Mar 2017  路  2Comments  路  Source: nuxt/nuxt.js

Is it advisable/recommended/practical/efficient to use nuxt.js as a static site generator for a site with many thousands of pages? I'm asking because this paragraph from vuejs.org seems to imply static site generation may not be a good idea for a large site:

If you鈥檙e only investigating SSR to improve the SEO of a handful of marketing pages (e.g. /, /about, /contact, etc), then you probably want prerendering instead. Rather than using a web server to compile HTML on-the-fly, prerendering simply generates static HTML files for specific routes at build time. The advantage is setting up prerendering is much simpler and allows you to keep your frontend as a fully static site.

This question is available on Nuxt.js community (#c366)
help-wanted

Most helpful comment

for my experience

if you have many thousands of pages ( like products page )
that also important for seo
if you want use generate static website , is impossible generate thousands pages when you update one product information , I think you still need prerender service like prerender.io , netlify ( static host provide prerender )
or ,
don't use generate , just push nuxt project to now.sh or heroku
that can get SSR page when client request page , even many thousands of pages .
https://nuxtjs.org/faq/now-deployment

but if your site have many people visit , you maybe need some cache solution
like, cdn cache ( cloudflare ) , or move your project to express(or others) than write file cache .

for me , I just let SSR no render products page ( many thousands of pages ) and generage project .
nuxt.config.js

generate: {
    routeParams: {
      '/products/:id': [
        // empty here
      ]
    }
  }

then deploy dist to netlify , let netlify handle the prerender .
and direct 404 page to /index.html ( like other spa )

All 2 comments

for my experience

if you have many thousands of pages ( like products page )
that also important for seo
if you want use generate static website , is impossible generate thousands pages when you update one product information , I think you still need prerender service like prerender.io , netlify ( static host provide prerender )
or ,
don't use generate , just push nuxt project to now.sh or heroku
that can get SSR page when client request page , even many thousands of pages .
https://nuxtjs.org/faq/now-deployment

but if your site have many people visit , you maybe need some cache solution
like, cdn cache ( cloudflare ) , or move your project to express(or others) than write file cache .

for me , I just let SSR no render products page ( many thousands of pages ) and generage project .
nuxt.config.js

generate: {
    routeParams: {
      '/products/:id': [
        // empty here
      ]
    }
  }

then deploy dist to netlify , let netlify handle the prerender .
and direct 404 page to /index.html ( like other spa )

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikekidder picture mikekidder  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments

bimohxh picture bimohxh  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

surmon-china picture surmon-china  路  3Comments