I've created a SvelteKit project, then I wanted to deploy it with Vercel. Upon opening the website, the functionality works. However, the images are not appearing and there is the error message "Failed to load resource: the server responded with a status of 404 (Not Found)" in the console.
I had my images as png files in a img folder inside of the src folder and I thought that vercel couldn't detect the img folder in the src folder, so I tried moving the img folder into the lib folder and changed the "/src/..." (which usually worked by opening on a localhost) reference to the $lib alias resulting to "$lib/..." . This code already failed to work, when it was opened via localhost, so that idea failed and I didn't have any other ideas.