I’m developing a personal blog using the “Portfolio Starter Kit” template, and I’m experiencing an issue with loading images in an .mdx file. When I try to insert an image using the following structure:
I suspect the problem might be related to the image path, as I was able to successfully load an image by using a URL from the web instead of the local path.
@baldifilippo Thank you for reaching out to the Vercel community.
image is located at /public/images/project-image.jpg in your project structure. The /public folder is the default static file serving folder in Next.js .
For example, the file public/avatars/me.png can be viewed by visiting the /avatars/me.png path.
Place your image in the /public/images/ directory of your project.
Adjust the src path if your image has a different name or location within the public folder.