Skip to content

Commit 6656a50

Browse files
committed
Add wsl_distro to toolbar config
1 parent 6cd3f4f commit 6656a50

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/toolbar.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
interface ToolbarPayload {
99
tidewave: TidewaveConfigPayload;
1010
root: string;
11+
wsl_distro: string | null;
12+
framework: Record<string, string>;
1113
}
1214

1315
export function injectToolbarHtml(
@@ -42,6 +44,8 @@ function toolbarPayload(config: TidewaveConfig, getLocalPort?: LocalPortGetter):
4244
return {
4345
tidewave: tidewaveConfig(config, getLocalPort),
4446
root: process.cwd(),
47+
wsl_distro: process.env['WSL_DISTRO_NAME'] ?? null,
48+
framework: {},
4549
};
4650
}
4751

0 commit comments

Comments
 (0)