mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
## Summary - Add documentation for the `env` option that inlines `process.env.*` values in frontend code when bundling HTML files - Document runtime configuration via `bunfig.toml` `[serve.static]` section for `bun ./index.html` - Document production build configuration via CLI (`--env=PUBLIC_*`) and `Bun.build` API (`env: "PUBLIC_*"`) - Explain prefix filtering to avoid exposing sensitive environment variables ## Test plan - [x] Verify documentation renders correctly in local preview - [x] Cross-reference with existing `env` documentation in bundler/index.mdx 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Michael H <git@riskymh.dev> Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Bun Documentation
Official documentation for Bun: the fast, all-in-one JavaScript runtime.
Development
Install the Mintlify CLI to preview the documentation locally:
bun install -g mint
Run the development server:
mint dev
The site will be available at http://localhost:3000.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.