cli icon indicating copy to clipboard operation
cli copied to clipboard

Add full SPA template to the CLI

Open mrleblanc101 opened this issue 11 months ago • 0 comments

Currently, configuring Nuxt to full SPA is more complicated than in the Nuxt 2 days. In nuxt 2:

ssr: false

But in nuxt 3, there is more configuration needed which cause confusion because it's not as clear as it was before:

ssr: false,
hooks: {
    'prerender:routes'({ routes }) {
        // Do not generate any routes except:
        // index.html
        // 200.html
        // 400.html
        // spa-loading-template.html
        routes.clear();
    },
},

So it would be nice to ask the rendering mode in the CLI like in the old [email protected] days:

Image

mrleblanc101 avatar Mar 07 '25 16:03 mrleblanc101