Using Google Drive for Image Sources Not Working with next/image #27189
-
So earlier today I tried compiling my next.js app through Vercel using
Clearly a quite solvable issue, so I modify my next.config.js file to this: module.exports = {
images: {
domains: ['drive.google.com'],
},
} However, even after this modification, I am getting the same error as before. I have spent several hours trying to figure out what might be wrong and I cannot seem to figure it out. For reference, I am passing a Google Drive image url through a custom component as an argument and then inserting that url as the src value in the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Took some messing around, but it turns out that my next.config.js file was fine, I just needed to restart the dev server on localhost. Can't believe I didn't try that sooner considering the images were loading upon deployment through Vercel. |
Beta Was this translation helpful? Give feedback.
-
Hello there! Is this the same with newer NextJS versions? I'm on 14.2.4 now. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Took some messing around, but it turns out that my next.config.js file was fine, I just needed to restart the dev server on localhost. Can't believe I didn't try that sooner considering the images were loading upon deployment through Vercel.