Skip to content

Add full SPA template to the CLI #779

Open
@mrleblanc101

Description

@mrleblanc101

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions