Design comparison
SolutionDesign
Solution retrospective
some how netlifty doesnt work perfeclty but on my local working well can someone help me please
Community feedback
- @dodrinPosted 10 months ago
Hi, the issue of the images not rendering on the build is because of the file path. When you store images in the
public
directory, you can access the images using their relative paths. for example,public/ ├── index.html ├── logo.png └── ...
In your React components,
<img src="/logo.png" alt="Logo" />
Here is the link for the Vite documentation. I hope this helps!https://vitejs.dev/guide/assets.html#importing-asset-as-url
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord