-
-
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
Providing a static file directory breaks React Storybook #47
Comments
what was the error you got? please provide the stack trace |
No errors in the console (the express app works), but the browser console shows:
This is because the static files middleware is taking precedence over the webpack middlewares and failing to load the built files. |
Hmm. I can't reproduce this issue. |
Ah found the problem, my static file directory had an index.html which was being served by the static middleware. Renaming this file (to something other than |
If you use the
-s
flag to provide a static file directory, the express routing appears to break and the app fails to load.The text was updated successfully, but these errors were encountered: