-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
refactor: simplify the remote patterns config #8325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR simplifies the remotePatterns configuration in the Next.js config by replacing verbose object literals with URL constructors for defining allowed remote image sources.
- Replaces explicit object patterns (
{protocol, hostname, port, pathname}) withnew URL()constructor calls - Reduces configuration verbosity from 5 multi-line objects to 5 single-line URL constructor calls
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Lighthouse Results
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8325 +/- ##
==========================================
+ Coverage 76.72% 76.73% +0.01%
==========================================
Files 118 118
Lines 9805 9805
Branches 335 335
==========================================
+ Hits 7523 7524 +1
+ Misses 2280 2279 -1
Partials 2 2 ☔ View full report in Codecov by Sentry. |
Description
simplify the remote patterns config
ref: simplify the remote patterns config
Validation
Related Issues
#8304 (comment)
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.👆 format, test, and build fails on main