Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion codegen/src/env_variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ Overrides the Biome binary being used. This allows you, for example, to use a sy

If you don't define this variable, Biome will automatically detect the correct binary for your platform.

```
```shell
# Nix derivation example; the binary path comes from "${pkgs.biome}/bin/biome"
BIOME_BINARY=/nix/store/68fyfw1hidsqkal1839whi3nzgvqv4pa-biome-1.0.0/bin/biome npx @biomejs/biome format .
```

### `RUST_BACKTRACE`

Enables capturing the backtrace when Biome panicked. This allows you to identify where the panic occurred.

```shell
RUST_BACKTRACE=1 npx @biomejs/biome check .
```"#;

pub fn generate_env_variables() -> Result<()> {
Expand Down
10 changes: 9 additions & 1 deletion src/content/docs/reference/environment_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ Overrides the Biome binary being used. This allows you, for example, to use a sy

If you don't define this variable, Biome will automatically detect the correct binary for your platform.

```
```shell
# Nix derivation example; the binary path comes from "${pkgs.biome}/bin/biome"
BIOME_BINARY=/nix/store/68fyfw1hidsqkal1839whi3nzgvqv4pa-biome-1.0.0/bin/biome npx @biomejs/biome format .
```

### `RUST_BACKTRACE`

Enables capturing the backtrace when Biome panicked. This allows you to identify where the panic occurred.

```shell
RUST_BACKTRACE=1 npx @biomejs/biome check .
```
Loading