-
-
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
Add option to specify path where all files from static directories will be outputted #1685
Comments
Had the exact same issue, added the file const express = require('express')
const path = require('path')
module.exports = router => {
router.use('/static', express.static(path.join(__dirname, '..', 'static')))
} Hope it helps! Inspired by #714 |
Thanks @jonespen 👍 |
@ndelangen is this middleware feature documented anyhow? |
I'm afraid it's not @Hypnosphi Thing to know about it is: it doesn't work when building a static version of storybook. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
@ndelangen @jonespen Im having the exact same issue but with build-storybook. Im also using nextjs. How can I solve this? Thanks! |
Duplicates #714 |
Right now I have nextjs project, with images in
/static/images
folder, and Im using it in components like this<img src="/static/images/logo.png" alt="logo" />
Problem is when I starting storybook with
"storybook": "start-storybook -p 6006 -c app/.storybook -s static",
the logo cant be found, for storybook proper path to image is now"/images/logo.png"
The text was updated successfully, but these errors were encountered: