{"record":{"id":"379a94189ea43b13","repo":"vercel/next.js","slug":"image-with-src-src-is-using-a-query-string-wh","errorCode":null,"errorMessage":"Image with src \"${src}\" is using a query string which is not configured in images.localPatterns.\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns","messagePattern":"Image with src \"(.+?)\" is using a query string which is not configured in images\\.localPatterns\\.\nRead more: https://nextjs\\.org/docs/messages/next-image-unconfigured-localpatterns","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/next/src/shared/lib/image-loader.ts","lineNumber":61,"sourceCode":"        const srcDpl = params.get('dpl')\n        if (srcDpl) {\n          deploymentId = srcDpl\n          params.delete('dpl')\n          const remaining = params.toString()\n          src = src.slice(0, qIndex) + (remaining ? '?' + remaining : '')\n        }\n      }\n    }\n  }\n\n  if (\n    src.startsWith('/') &&\n    src.includes('?') &&\n    config.localPatterns?.length === 1 &&\n    config.localPatterns[0].pathname === '**' &&\n    config.localPatterns[0].search === ''\n  ) {\n    throw new Error(\n      `Image with src \"${src}\" is using a query string which is not configured in images.localPatterns.` +\n        `\\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`\n    )\n  }\n\n  if (process.env.NODE_ENV !== 'production') {\n    if (src.startsWith('//')) {\n      throw new Error(\n        `Failed to parse src \"${src}\" on \\`next/image\\`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)`\n      )\n    }\n\n    if (src.startsWith('/') && config.localPatterns) {\n      if (\n        process.env.NODE_ENV !== 'test' &&\n        // micromatch isn't compatible with edge runtime\n        process.env.NEXT_RUNTIME !== 'edge'\n      ) {","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/shared/lib/image-loader.ts#L43-L79","documentation":"Error \"Image with src \"${src}\" is using a query string which is not configured in images.localPatterns.\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns\" thrown in vercel/next.js.","triggerScenarios":"next/image src has a query string not matched by images.localPatterns.","commonSituations":"A local image with ?query params while localPatterns is configured without a matching entry.","solutions":["Add a matching entry to images.localPatterns in next.config.js, or remove the query string from src."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}