You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We think this is a bug in 6.1. We explicitly filter out environment variables that don't start with STORYBOOK_ for security purposes. If you put the variable in a .env file, then you don't need to prefix it.
Closing this for now. Please let me know if you have any issues!
@shilman: Means the bug is that it worked till 6.1?
Using .env file is not really an option because I need to run the script multiple times with different environment values.
Describe the bug
I upgraded from from 6.1.21 to 6.2.1 and it seems that Environment variables (https://storybook.js.org/docs/react/configure/environment-variables) not working anymore in HTML files. I used one before in preview-head.html
To Reproduce
Add environment variable into preview-head.html. Example: %BRAND%. Start Storybook
BRAND=value start-storybook
Expected behavior
Environment variables should be replaced with given value.
Screenshots
System
The text was updated successfully, but these errors were encountered: