We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following the instructions on this page https://www.gatsbyjs.org/docs/static-folder/:
/static
pathPrefix: '/img'
gatsby-config.js
<img src={withPrefix('/img/logo.png')} alt="Logo" />
It did not work.
This does work:
<img src='/logo.png' alt="Logo" />
That worked fine.
I'm probably misunderstanding something here.
The text was updated successfully, but these errors were encountered:
Thanks for reporting! There's a draft PR open for that doc, I can take a look...or if you feel like opening a PR that would be welcome!
Sorry, something went wrong.
copy updates
9c086a4
Closes #13297
44e7067
No branches or pull requests
Following the instructions on this page https://www.gatsbyjs.org/docs/static-folder/:
/static
pathPrefix: '/img'
togatsby-config.js
<img src={withPrefix('/img/logo.png')} alt="Logo" />
in a componentIt did not work.
This does work:
/static
<img src='/logo.png' alt="Logo" />
in a componentThat worked fine.
I'm probably misunderstanding something here.
The text was updated successfully, but these errors were encountered: