Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

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

Merged
pi0 merged 1 commit into
nuxt:mainfrom
oumarbarry:patch-1
Aug 26, 2022
Merged

docs(deploy): update command for csr prerendering#6966
pi0 merged 1 commit into
nuxt:mainfrom
oumarbarry:patch-1

Conversation

@oumarbarry

Copy link
Copy Markdown
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

netlifyBot commented Aug 26, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs ready!

NameLink
🔨 Latest commit8d5aab5
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/630880d3181eee000968a53a
😎 Deploy Previewhttps://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.

@pi0pi0 changed the title docs(deploy): update informationdocs(deploy): update command for csr prerenderingAug 26, 2022
## 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
Copy Markdown
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:mainAug 26, 2022
@pi0pi0 mentioned this pull request Sep 1, 2022
Sign up for freeto 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.

3 participants

@oumarbarry@pi0@danielroe