Issues when using assetPrefix
Unanswered
spamrefiner posted this in #help-forum
When I am using assetPrefix, and trying to load images, I get the following error
The issue started when I migrated to Next.js 16 from 15
Next.js Info
⨯ Error: Invalid src prop (localhost:3000/_next/static/media/logo.bceae935.svg) on `next/image`, hostname "" is not configured under images in your `next.config.js`
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host
at ignore-listed frames {
digest: '2711846913'
}The issue started when I migrated to Next.js 16 from 15
Next.js Info
PS D:\Coding\Websites\NextJS\realm.rd> pnpm next info
This project is configured to use pnpm because D:\Coding\Websites\NextJS\realm.rd\package.json has a "packageManager" field
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Home Single Language
Available memory (MB): 16150
Available CPU cores: 8
Binaries:
Node: 22.17.0
npm: 10.9.2
Yarn: N/A
pnpm: 10.15.0
Relevant Packages:
next: 16.0.1-canary.2 // Latest available version is detected (16.0.1-canary.2).
eslint-config-next: N/A
react: 19.2.0
react-dom: 19.2.0
typescript: 5.8.3
Next.js Config:
output: N/A