codesandbox / codesandbox-client

An online IDE for rapid web development
https://codesandbox.io
Other
13.04k stars 2.27k forks source link

Public folder not working #8472

Closed artsakenos closed 3 months ago

artsakenos commented 3 months ago

🐛 bug report

Preflight Checklist

Description of the problem

I'm struggling rendering the assets from my public folder. It always worked flawlessy, so I am not sure is some naming convention policy or folder structure changed, I didn't find anything about. All my projects assets are now broken.

How has this issue affected you? What are you trying to accomplish?

I can't render assets from the public folder.

To Reproduce

Create a react project, put an image in the public folder, e.g.,

/public/images/house.png

Link the image to your page, e.g.,

<a href="/images/house.png">House</a>

(I tried to put /public too)

Link to sandbox: link (<-- Link to a public sandbox)

This sandbox is public. You open the NavBar, the images are all broken.

image

Your Environment

Software Name/Version
Сodesandbox Web Version
Browser Chrome (Latest)
Operating System Windows 10
filipelima18 commented 3 months ago

Hi @artsakenos. I couldn't reproduce the issue on my end. Opening the URL you provided, I see the images rendered as expected. image

Is it still not working on your end?

artsakenos commented 3 months ago

Hi @artsakenos. I couldn't reproduce the issue on my end. Opening the URL you provided, I see the images rendered as expected Is it still not working on your end?

@filipelima18 Thank you for answering.

Yes, actually now is working perfecly. I don't know what happened, maybe some server glitch, no idea. Justs as a reference the public assets were not available across many projects.

Thanks again!