Commit 7454d30
committed
Auto-detect browser availability for Storybook
Make the browser opening behavior smart:
- Detect if xdg-open is available
- Only add --no-open flag if it's not available
- Allows Storybook to open browser on machines that support it
- Prevents xdg-open ENOENT errors on headless machines
This way it works seamlessly on both developer machines with browsers
and headless CI/test machines.1 parent 1c90fc8 commit 7454d30
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
262 | 267 | | |
263 | 268 | | |
264 | 269 | | |
265 | | - | |
| 270 | + | |
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
| |||
0 commit comments