mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 18:41:06 +08:00
Update docs/faq.md
This commit is contained in:
parent
97bc4ee149
commit
12f44d7c39
@ -349,4 +349,4 @@ Applying this small change will enable you to add syntax highlight for SCSS or a
|
||||
|
||||
### How can my code detect if it is running in Storybook?
|
||||
|
||||
You can do this by checking for the `IS_STORYBOOK` global variable, which will equal `true` when running in Storybook.
|
||||
You can do this by checking for the `IS_STORYBOOK` global variable, which will equal `true` when running in Storybook. The environment variable `process.env.STORYBOOK` is also set to `true`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user