Hi, recently tried Vercel, and used the Github import to import my Next.js project into it. However I noticed that one of my code blocks that fetches some of my images (height and width dimensions) in my /public/images directory was failing. The issue listed that the directory wasn’t found. Which I thought was wierd, considering it worked locally for me and that folder definitely exists among others.
So I created an api function to list out all the directories inside of public (live on vercel), and the only one it listed was my public/blog route. All the other ones are missing including /images /icons /posts /fonts etc.
Everything is in my github so not sure what the issue is and can’t seem to figure out why those folders would be missing from my /public directory (live in vercel). Any help appreciated as I was excited to try to get this working.
Thanks for the reply! Yes, I went ahead and made a /images folder and a /blog folder inside of public and pushed it up in a brand new project.
Here’s the live project
and the github where you can see the /blog and /images folder
No /images folder or /blog in /public or even the public folder from what I can tell in the output of the api route that I pasted on the index.js of the live site.