Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add full SPA template to the CLI #779

Open
mrleblanc101 opened this issue Mar 7, 2025 · 0 comments
Open

Add full SPA template to the CLI #779

mrleblanc101 opened this issue Mar 7, 2025 · 0 comments

Comments

@mrleblanc101
Copy link

mrleblanc101 commented Mar 7, 2025

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 mrleblanc101 changed the title Add SPA template to the CLI Add full SPA template to the CLI Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant