docs: use cleaner imports in examples and add read more links to config#4200
docs: use cleaner imports in examples and add read more links to config#4200
Conversation
- `defineNitroConfig` → `defineConfig` with import from `"nitro"` - `defineNitroErrorHandler` → `defineErrorHandler` - `defineCachedEventHandler` → `defineCachedHandler` - `eventHandler` from `"h3"` → `defineHandler` from `"nitro"` - Fix stale `/guide/` url to `/docs/configuration` - Update migration guide to reflect `defineConfig` from `"nitro"` Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace inline "[Read more]" links with `:read-more` component at the end of each config section for storage, database, renderer, assets, plugins, tasks, routing, route rules, and hooks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR updates documentation and example files across the Nitro project to reflect API naming changes. It replaces Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
🔗 Linked issue
❓ Type of change
📚 Description
Switches imports to
import { defineConfig } from 'nitro'rather thanimport { defineNitroConfig } from 'nitro/config', and adds read more links in the config page to link to the dedicated docs pages.📝 Checklist