Skip to content

docs: document vite client and server options#35090

Merged
danielroe merged 1 commit into
nuxt:mainfrom
mohitkum4r:docs/vite-client-server-config
May 17, 2026
Merged

docs: document vite client and server options#35090
danielroe merged 1 commit into
nuxt:mainfrom
mohitkum4r:docs/vite-client-server-config

Conversation

@mohitkum4r

Copy link
Copy Markdown
Contributor

Summary

  • Document vite.$client and vite.$server in the Vite plugin recipe
  • Explain how top-level vite options are shared and environment-specific options are applied
  • Add a nuxt.config.ts example for browser-only and server-only Vite build options

Issue

Closes #30997

Validation

  • pnpm lint:docs
  • git diff --check

@github-actions github-actions Bot added 5.x 📚 documentation Documentation improvements or additions labels May 17, 2026
@mohitkum4r mohitkum4r marked this pull request as ready for review May 17, 2026 10:33
@mohitkum4r mohitkum4r requested a review from danielroe as a code owner May 17, 2026 10:33
@coderabbitai

This comment has been minimized.

@mohitkum4r mohitkum4r force-pushed the docs/vite-client-server-config branch from f5f5378 to b956888 Compare May 17, 2026 10:37
Comment thread lychee.toml Outdated
Comment thread docs/3.guide/5.recipes/2.vite-plugin.md Outdated
@mohitkum4r mohitkum4r force-pushed the docs/vite-client-server-config branch 2 times, most recently from eeb83b0 to 21345f3 Compare May 17, 2026 18:13
@mohitkum4r mohitkum4r force-pushed the docs/vite-client-server-config branch from 21345f3 to fd66e12 Compare May 17, 2026 18:22
@mohitkum4r

Copy link
Copy Markdown
Contributor Author

@danielroe I noticed the link-checker CI pipeline failed. After checking the recent runs on the main branch, it looks like it's currently failing upstream for the "$%7BkebabCase(factory.name)%7D" URL. Since I've reverted my lychee.toml changes, this PR now only contains the necessary documentation updates.

@mohitkum4r mohitkum4r requested a review from danielroe May 17, 2026 18:31

@danielroe danielroe left a comment

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.

❤️

@danielroe

Copy link
Copy Markdown
Member

thank you! if you can figure out how to specify/ignore that url for lychee, I'd love a PR to resolve 🙏

@danielroe danielroe merged commit 8892b1f into nuxt:main May 17, 2026
22 of 23 checks passed
@github-actions github-actions Bot mentioned this pull request May 17, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.x 📚 documentation Documentation improvements or additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

document vite.$client and vite.$server

3 participants