Skip to content

Commit

Permalink
Update bun preset documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
uroybd authored Sep 19, 2023
1 parent aab1322 commit 06d9fee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/content/2.deploy/providers/bun.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ Bun preset is experimental and available to try via [edge channel](/guide/gettin

## Building for Bun

After building with bun preset using `NITRO_PRESET=bun`, you can run server in production using:
After building with bun preset using `NITRO_PRESET=bun`, you can run the server in production using:

```bash
bun run ./.output/server/index.mjs
```

### Environment Variables

You can customize server behavior using the following environment variables:

- `NITRO_PORT` or `PORT` (defaults to `3000`)
- `NITRO_UNIX_SOCKET` - if provided (a path to the desired socket file) the service will be served over the provided UNIX socket.

0 comments on commit 06d9fee

Please sign in to comment.