AI Review Center
Commit Review Workspace ?
Select a commit on the left to inspect quality, security, business value, findings, and suggested code changes.
Project AI Score
?
63%
Quality Avg
?
68%
Security Avg
?
45%
Reviews
?
56
Review Result ?
jattin01/avriti · f2ed9a68
This commit configures Next.js remote image patterns allowing images from localhost and a specific API domain. It provides required configuration for image optimization and unoptimized images. However, the commit message is poor, and the security score is low due to allowing http protocol and localhost with loose pathname matching.
Quality
?
70%
Security
?
30%
Business Value
?
60%
Maintainability
?
75%
Issues & Suggested Fixes
?
1AI detects the issue
2Shows file, line, or evidence
3Suggests the fix to apply
Issue
Where
commit message
Issue / Evidence
issue
Suggested Fix
provide a descriptive commit message explaining the changes and reasoning to improve maintainability.
Security Issue
Where
next.config.ts:7
Issue / Evidence
security risk by allowing 'http' protocol for localhost images
Suggested Fix
consider restricting to 'https' or only trusted sources to improve security score.
Wildcard Pathname /** Might Be Too Broad
Where
next.config.ts:10
Issue / Evidence
wildcard pathname /** might be too broad
Suggested Fix
restrict the pathnames if possible to improve security and reduce bug risk.
Consider Adding Comments To Explain The Pu...
Where
next.config.ts:17
Issue / Evidence
consider adding comments to explain the purpose of remote patterns and unoptimized settings to improve quality.
Suggested Fix
Review and simplify this section.
Code Change Preview · next.config.ts
?
Removed / Before Commit
- import type { NextConfig } from "next"; - - const nextConfig: NextConfig = { - images: { - remotePatterns: [ - { - protocol: 'http', - hostname: 'localhost', - port: '8000', - pathname: '/**', - }, - { - protocol: 'https', - hostname: 'api.digitalmission.in', - pathname: '/**', - }, - ], - unoptimized: true,
Added / After Commit
+ import type { NextConfig } from "next"; + + const nextConfig: NextConfig = { + images: { + remotePatterns: [ + { + protocol: 'http', + hostname: 'localhost', + port: '8000', + pathname: '/**', + }, + { + protocol: 'https', + hostname: 'api.digitalmission.in', + pathname: '/**', + }, + ], + unoptimized: true,