Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Storybook does not respect BROWSER env var #21404

Closed
wants to merge 1 commit into from
Closed

fix: Storybook does not respect BROWSER env var #21404

wants to merge 1 commit into from

Conversation

thtliife
Copy link
Contributor

@thtliife thtliife commented Mar 6, 2023

Storybook does not respect BROWSER env var if default browser is not chromium based.

Re-doing this pr because some weirdness happened on the last attempt.

Closes #21343

What I did

This commit adds a check for the environment variable, and passes it to the open package as an argument if the specified browser is not chromium based.

Changes are in code/lib/core-server/src/utils/open-in-browser.ts

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

…chromium based.

Re-doing this commit because some weirdness from pull bot happened on the last attempt.

Closes #21343
@thtliife thtliife closed this Mar 7, 2023
@thtliife
Copy link
Contributor Author

thtliife commented Mar 7, 2023

Closed this because pull bot breaks it....
Will do a new PR shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Storybook does not respect BROWSER env var if default browser is not chromium based.
2 participants