Next.js · Senior · Question 74 of 75
What changed for the props of opengraph-image, icon and apple-icon functions in Next.js 16?
export default async function Image({ params, id }) {
const { slug } = await params
const imageId = await id
}- ✓Correct answer:
paramsandidare now Promises and must be awaited - 2They no longer receive
params - 3They must return a
Responseinstead ofImageResponse
Explanation
It matches the async request APIs elsewhere in Next.js 16. The same applies to the id argument of sitemap with generateSitemaps.