Reputation: 181
Having issues deploying my create-react-app project to Vercel using their dashboard. I removed all of my images from my src and am calling them like src={"images/my-image.png"}
from my public folder.
It deploys fine with no errors in my localhost. Am I needed to clear a cache somewhere? Please help!
Upvotes: 1
Views: 742
Reputation: 74
You can change src={'string'}
to
import Avatar3 from '../public/images/avatar-3.png'
...
<Image src={Avatar3} ... />
...
Must be one of the following:
ref. https://nextjs.org/docs/api-reference/next/image
Upvotes: 1