Skip to content

Conversation

@cernymatej
Copy link
Member

📚 Description

This replaces an example of using nuxt.options._layers in the docs with getLayerDirectories().

@cernymatej cernymatej requested a review from danielroe as a code owner October 15, 2025 13:27
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@coderabbitai
Copy link

coderabbitai bot commented Oct 15, 2025

Walkthrough

Updates 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)
Check name Status Explanation
Title Check ✅ Passed The title accurately and concisely summarises the primary documentation change by stating that getLayerDirectories() is recommended over nuxt.options._layers, matching the content of the changeset.
Description Check ✅ Passed The description clearly states that the example in the documentation is being updated to use getLayerDirectories() instead of nuxt.options._layers, directly matching the changes in the pull request.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a 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

📥 Commits

Reviewing files that changed from the base of the PR and between 27cf85b and 03961a6.

📒 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

@danielroe danielroe merged commit 4ddf291 into nuxt:main Oct 15, 2025
9 of 10 checks passed
@github-actions github-actions bot mentioned this pull request Oct 15, 2025
@github-actions github-actions bot mentioned this pull request Oct 23, 2025
@github-actions github-actions bot mentioned this pull request Oct 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants