Next js unhandled runtime error Invalid src prop

Help to fix, I get the following errors while trying to implement Google auth in my Next js project

Unhandled Runtime Error
Error: Invalid src prop ( on `next/image`, hostname "" is not configured under images in your `next.config.js`
See more info:

This error occurs when I try to display the user image returned by Google.


message profile

This can be fixed by adding google's hostname to your image domain configuration in your next.config.js file as shown below;

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  swcMinify: true,
  images: {
    domains: [''],

module.exports = nextConfig

After this is done, stop your development server and start it againyes.

Add Message

Click on the button below to add a new message to this thread


#Javascript #next js

Thread detail

Satus: Open
Messages: 1Started: 2023-05-12




Frontend Development |Backend Development |Full Website Development |Bootstrap Website upgrades | Website Debbugging | Website Hosting & deployment


Interested in hiring me or collaborating with me on a project, click on any of the links below to get my social media handle

Or contact me via Tel: (+234)-806-225-7480 | Email:
Privacy Policy

By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.