Storybook: Hostname for storybook not localhost anymore

Created on 28 Sep 2016  路  4Comments  路  Source: storybookjs/storybook

We just upgraded to 2.20.0 and see some problems with Storybook starting under a different hostname. Before it was always localhost now it seems to be the machine name. Even when -h 0.0.0.0 or -h localhost is passed. I am still investigating why this is happening with the new version.

Most helpful comment

Released v2.20.1 with a patch. It should work correctly now.

This happened when I removed the STORYBOOK_ prefix from config environment variables (because the same prefix is used to send data to the client). [source]

All 4 comments

Hi @joscha, thanks for reporting this. It's a bug recently crept into Storybooks, I'm working on the fix right now.

Released v2.20.1 with a patch. It should work correctly now.

This happened when I removed the STORYBOOK_ prefix from config environment variables (because the same prefix is used to send data to the client). [source]

nice one, thank you @mnmtanish

just verified: this fixed the problem!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zvictor picture zvictor  路  3Comments

dnlsandiego picture dnlsandiego  路  3Comments

tlrobinson picture tlrobinson  路  3Comments

levithomason picture levithomason  路  3Comments

xogeny picture xogeny  路  3Comments