Displaying images without having to add the host name
Unanswered
Sandhill Crane posted this in #help-forum
Sandhill CraneOP
I’ve recently moved my quiz application to NextJS. When it came to displaying images from the web, I’ve gotten the invalid src props error. I wonder if there’s a workaround to this because the database with the questions is way to large for me.
6 Replies
if you don't want to do this, you can use img tag
but then you will be losing the good things next/image does
@@ts-ignore https://nextjs.org/docs/app/api-reference/components/image#remotepatterns
Sandhill CraneOP
What would be the cons of not using next/image?
@@ts-ignore Click to see attachment
Sandhill CraneOP
Alright