nitro
nitro copied to clipboard
feat: expose `getRouteRulesForPath` from nitro runtime
๐ Linked issue
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme, or JSdoc annotations)
- [x] ๐ Bug fix (a non-breaking change that fixes an issue)
- [x] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
This exposes getRouteRulesForPath from #internal nitro. We could use it in Nuxt (context) to avoid duplicating this logic or importing deeply from the runtime directory.
Not sure if there was a reason it was explicitly not exposed previously.
๐ Checklist
- [ ] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.
We need to make (type) read-only before exposing util.
Should be good to go ๐