Repository navigation
feat(nuxt): warn when public files override application routes - #35674
Conversation
@nuxt/kit
@nuxt/nitro-server
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/nuxt/src/pages/module.ts`:
- Line 475: Wrap the statSync call in the file-checking loop with try...catch,
treating expected filesystem conflicts such as ENOTDIR (and missing paths) as
non-matches so the build continues. Preserve the existing isFile check and
continue behavior for valid paths.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 5f1a4222-4c38-4ed8-9a64-4a239acfa129
📒 Files selected for processing (4)
packages/kit/src/diagnostics/pages.tspackages/nuxt/src/pages/module.tspackages/nuxt/src/pages/public-assets.tspackages/nuxt/test/public-assets.test.ts
Merging this PR will improve performance by 11.65%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | initial production build in the minimal test fixture |
2 s | 1.8 s | +11.65% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing Norbiros:feat/warn-on-public-index-html (934457a) with main (65e8551)
Footnotes
-
3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
2742ece to
7c6b6b2
Compare
Co-authored-by: Daniel Roe <[email protected]>
🔗 Linked issue
Resolves #31103
📚 Description
Adds a warning for conflicting
public/assets and application routes.