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
I'm trying to import images into my mdx files but they keep throwing a 404 error and don't work. The images are stored within .storybook/documentation/assets and I'm importing them into my mdx like so:
And my start script looks like so: start-storybook -p 6006 --no-manager-cache -s ./src, I've tried modifying this but I need to serve static files from src too (it also doesn't fix the image issue anyway it seems)
The images 404 as they can't seem to find the /static/media directory: http://localhost:6006/static/media/logo.43b6b382.png
The text was updated successfully, but these errors were encountered:
JamesIves
changed the title
Unable to import images into documentation
Unable to import images into documentation mdx
Apr 6, 2021
I'm trying to import images into my mdx files but they keep throwing a 404 error and don't work. The images are stored within
.storybook/documentation/assets
and I'm importing them into my mdx like so:I have an image loader configured within
.storybook/main.js
like so:And my start script looks like so:
start-storybook -p 6006 --no-manager-cache -s ./src
, I've tried modifying this but I need to serve static files fromsrc
too (it also doesn't fix the image issue anyway it seems)The images 404 as they can't seem to find the /static/media directory:
http://localhost:6006/static/media/logo.43b6b382.png
The text was updated successfully, but these errors were encountered: