-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
docs: recommend getLayerDirectories() instead of nuxt.options._layers
#33484
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
|
|
WalkthroughUpdates a documentation guide to replace usage of the internal nuxt.options._layers with the public Nuxt Kit API getLayerDirectories() in an example. Adds an import from nuxt/kit and iterates over the array returned by getLayerDirectories(), outputting properties (root, app, server, appPages) with an index label. Revises the accompanying note to state that earlier items in the array have higher priority and the user project appears first. No changes outside the markdown documentation file. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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/3.going-further/7.layers.md(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: docs
docs/2.guide/3.going-further/7.layers.md
[error] 1-1: [404] https://nuxt.com/docs/api/kit/layers#getlayerdirectories | Rejected status code (this depends on your "accept" configuration): Not Found
📚 Description
This replaces an example of using
nuxt.options._layersin the docs withgetLayerDirectories().