we need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
Build problems? Link or paste the FULL build log & build settings screenshot
The better the post - the faster the answer.
Hello recently i have joined the netlify app to publish my html website to surprise my bestfriend
But when I published my website the images were not displaying on the website
Please help me how to fix the error
Here is my website
shahbhavya0205.netlify.app
Hi @shahbhavya if you images aren’t appear this is likely an issue with your code. Can you share the link to your URL so I an other community members can check as well as your repo.
Kindly check this response and see if you have a similar problem:
This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem Additionally, this Support Guide houses all of our resources for debugging build and deploy issues.
We also recommend trying to search the forums with the build error you encountered - it’s likely your question was already asked by someone else!
@NellyCN You’re using Vite, and experiencing an entirely different issue.
If you run your npm run build locally you will see exactly what is happening, which is that your images aren’t ending up in your dist folder, and thus aren’t getting deployed by Netlify.
I placed the source of the images within an object with several arrays, that are stored in an external data file. Tried changing the src of the images in this file and some other solutions I found here, but nothing worked.
Could someone help me?
Thank you
Thank you for the help.
Read the documentation again and was able to fix it.
Moving the images to a folder named public and changing the srcs to /image.png instead of ./public/image.png solved the isuse.
Because you deployed the project source code, not the built project. If you want to deploy manually you need to build the project locally and deploy the output.
This is because you haven’t understood the tool you are using (Vite) and quite possibly haven’t read the documentation. If you read the topic I linked previously, you will find the solution to your issue (and links to the relevant Vite documentation.)
On another note, you will need to rename the project as Pinterest is a protected trademark and using such names without authorisation is a violation of Netlify’s terms (and law.) You will also want to refrain from using the Pinterest logo and name anywhere in the site.