-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
docs: add information on types for server context #33511
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
Conversation
…tsconfig.server.json)
|
|
WalkthroughThe documentation file docs/2.guide/1.directory-structure/1.server.md was edited. The previous Nuxt >= 3.5 tip was replaced with an explanation that the ~/server/ directory runs in a different context from app/, so auto-imports and typings differ. The new text states Nuxt 4 generates a tsconfig.json with a project reference covering the server/ folder to ensure accurate typings and mentions compatibility considerations for earlier Nuxt 3 projects. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
docs/2.guide/1.directory-structure/1.server.md(1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/2.guide/1.directory-structure/1.server.md
[uncategorized] ~135-~135: Possible missing comma found.
Context: ...r types are different for the server/ directory as it is running in a different context...
(AI_HYDRA_LEO_MISSING_COMMA)
🔇 Additional comments (1)
docs/2.guide/1.directory-structure/1.server.md (1)
135-137: Effective simplification of Server Types documentation.The revision successfully replaces the outdated Nuxt >= 3.5 guidance with clear, Nuxt 4–focused information. The explanation of the separate server/ context and Nuxt 4's automatic tsconfig.json generation with project references directly addresses the issue (#33277) of confusing or empty documentation.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
🔗 Linked issue
Resolves: #33277
Summary
This PR updates the “Server Types” documentation to reflect the current behavior in Nuxt 4.
The existing note:
was misleading for Nuxt 4 users, as the feature is now fully integrated and requires no manual setup.
✏️ Changes
~/server/tsconfig.jsonconfiguration steps.✅ Result
This improves clarity for Nuxt 4 developers by removing legacy context while keeping the documentation accurate and up to date.