docs(bun-plugin): document process.env type augmentation#464
Conversation
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughThis PR adds documentation for Bun plugin's process.env type augmentation feature. A new guide page is created detailing setup, usage examples with BUN_PUBLIC_* variables, and explanation of the ProcessEnvAugmented type. The navigation metadata is updated to include the new page. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: yamcodes <2014360+yamcodes@users.noreply.github.com>
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Pull request overview
This PR adds documentation for the ProcessEnvAugmented type export from @arkenv/bun-plugin, enabling developers to achieve typesafe process.env access in Bun projects. The documentation follows the established pattern from the vite-plugin's typing-import-meta-env.mdx documentation, ensuring consistency across the plugin ecosystem.
Key Changes
- Created comprehensive documentation page explaining how to set up type augmentation for
process.envin Bun projects - Added navigation entry in
meta.jsonto make the new documentation discoverable - Included complete examples showing the setup, usage, and organization patterns for growing projects
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/www/content/docs/bun-plugin/typing-process-env.mdx | New documentation page covering ProcessEnvAugmented type setup, usage examples, how it works, project organization patterns, and a warning about import statements breaking type augmentation |
| apps/www/content/docs/bun-plugin/meta.json | Added typing-process-env to the navigation pages array to make the new documentation accessible from the sidebar |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
The bun plugin exports
ProcessEnvAugmentedfor typesafeprocess.envaccess, but this wasn't documented.Changes
typing-process-env.mdxto bun-plugin docsmeta.jsonto include new page in navigationUsage
Follows same pattern as existing vite-plugin
typing-import-meta-env.mdxdocs.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.com/usr/local/bin/node node ./node_modules/.bin/../next/dist/bin/next build(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.