-
-
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
3.3.0-alpha.4 preview-head
does not work with a custom configDir
#2501
Comments
I'm able to reproduce this exactly as described here by @skovy. Looking into a fix. cc @danielduan |
The issue seems to come from the fact that in the Since the Happy to send a PR if you think that it's a viable solution. |
@samouss I have also tried this fix out and have something basic working, but don't understand the implications of the fix. If you could put together a PR and we can get other people on the team to comment, that would be really awesome!! |
I'm quite confused as to why this was working before and not anymore. I think there might be a PR somewhere to enable configuration via environment variables. |
It seems that a recent change introduce the But now they are generated form the |
@samouss Any progress on a PR for this? |
Nope, I didn't have the time to work on it yet. But I hope I will have it in the coming days! |
Fixed in #2666 |
Fix released as |
Issue details
On
3.3.0-alpha.4
, we use a custom config directory (frontend/.storybook
). This works on3.2
, but is broken on3.3.0-alpha.4
. This appears to be fixed onmaster
but notrelease/3.3
. It appears the ENV var is always undefined:https://github.com/storybooks/storybook/blob/3c1715dacaf95a789e4e024cdb1e8993bf3ada9b/app/react/src/server/config/utils.js#L37
Steps to reproduce
Add a custom config directory (
start-storybook -c frontend/.storybook -p 6006
), with apreview-head.html
file in the config directory (frontend/.storybook/preview-head.html
).Temporary Solution
I was able to work around this issue for the time being by adding this config var:
SBCONFIG_CONFIG_DIR=frontend/.storybook start-storybook -c frontend/.storybook -p 6006
Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/react
@3.3.0-alpha.4
Affected platforms
The text was updated successfully, but these errors were encountered: