Skip to content
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

Not able to access static assets #1119

Closed
isamrish opened this issue Sep 19, 2019 · 3 comments
Closed

Not able to access static assets #1119

isamrish opened this issue Sep 19, 2019 · 3 comments
Labels
bug Something isn't working fixed Issue fixed and released pending-user-response v2

Comments

@isamrish
Copy link

isamrish commented Sep 19, 2019

Question

I was trying to access the static assets from localhost but I am unable to do. I tried to add to use public key in doczrc.js file by following this issue #502. But I could not access my static assets in the browser.

Is there anything that I am missing?

Thanks

@rakannimer
Copy link
Contributor

You're trying to access static assets from your JS code not from an mdx file right ?

If yes, it looks like there's an issue with using static assets from jsx code.

We'll hopefully fix that before the official v2 is released.

@rakannimer rakannimer added v2 bug Something isn't working labels Sep 22, 2019
@rakannimer
Copy link
Contributor

Hey this was fixed starting from version 2.0.0-rc.44.

You can check an example of using images in docz from mdx and jsx files here : https://github.com/doczjs/docz/tree/master/examples/images

You can also set the public field in doczrc.js to use a different directory for your public assets .

@rakannimer rakannimer added fixed Issue fixed and released pending-user-response labels Sep 29, 2019
@rakannimer
Copy link
Contributor

Closing this as it should be fixed. Please feel free to re-open if a regression occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Issue fixed and released pending-user-response v2
Projects
None yet
Development

No branches or pull requests

2 participants