Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

docs(deploy): update command for csr prerendering #6966

Merged
merged 1 commit into from
Aug 26, 2022
Merged

docs(deploy): update command for csr prerendering #6966

merged 1 commit into from
Aug 26, 2022

Conversation

oumarbarry
Copy link
Contributor

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

As tried, when you want to generate client-side only output, even with "ssr : false" in nuxt.config.ts,
"nuxi build" doesn't generate the correct output, it still generates node ssr output,
but nuxi generate does the job.

As tried, when you want to generate client-side only output, even with "ssr : false" in nuxt.config.ts,
"nuxi build" doesn't generate the correct output, it still generates node ssr output,
but nuxi generate does the job.
@netlify
Copy link

netlify bot commented Aug 26, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 8d5aab5
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/630880d3181eee000968a53a
😎 Deploy Preview https://deploy-preview-6966--nuxt3-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@pi0 pi0 changed the title docs(deploy): update information docs(deploy): update command for csr prerendering Aug 26, 2022
@@ -19,7 +19,7 @@ npx nuxi generate

## Client-side Only Rendering

If you don't want to prerender your routes, another way of using static hosting is to set the `ssr` property to `false` in the `nuxt.config` file. The `nuxi build` command will then output an `index.html` entrypoint like a classic client-side Vue.js application.
If you don't want to prerender your routes, another way of using static hosting is to set the `ssr` property to `false` in the `nuxt.config` file. The `nuxi generate` command will then output an `index.html` entrypoint like a classic client-side Vue.js application.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Actually nuxi build does the same to add pretender SPA routes. generate enables crawler only. But generate seem better for usage example here πŸ‘πŸΌ

@pi0 pi0 merged commit e098cf0 into nuxt:main Aug 26, 2022
@pi0 pi0 mentioned this pull request Sep 1, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants