Images not loading when deployed but works fine on local

@CarlMBergman You’re using Vite, so you should read Vite’s Static Asset Handling documentation.

You have your images located at /src/assets.

As per their documentation, you would either want to import the images, or place them within the /public folder.

Also, for future reference, you can better determine if the issue is your own code, or on Netlify’s side, by running your build command locally and inspecting the output there.

1 Like