-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Core: Add STORYBOOK environment variable #12997
Core: Add STORYBOOK environment variable #12997
Conversation
@tmeasday WDYT? seems reasonable but I'm a little unclear on the use case |
Sure, seems reasonable to me |
Aha @toshi1127 this got converted to TS recently. Any chance you can redo the PR in the new files? |
…feature/add-default-environment-variable
@shilman |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @toshi1127 -- looking good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @toshi1127 -- looking good!
Did this feature disappear? I need to change some postcss config for Storybook only, but in postcss.config.js |
Yeah, I'm also not seeing this anymore @shilman. Version 6.4.7 |
I found the current source version 6.5.9 https://github.com/storybookjs/storybook/blob/next/lib/core-common/src/utils/envs.ts#L15 |
Issue: #12416
What I did
By Default, the environment variable
STORYBOOK
is set totrue
.How to test
Is this testable with Jest or Chromatic screenshots?
yes.
I have tested that
process.env.STORYBOOK
is set to true.Does this need a new example in the kitchen sink apps?
Does this need an update to the documentation?
Should I update this document?