fix: remove debug console.log statements from production components (#1985) - #2005
Conversation
|
@Lakshayg136 is attempting to deploy a commit to the recode Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs. In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊 Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv. We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰 🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨ 📚Your perks for contribution to this community 👇🏻
If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
|
✅ Synchronized metadata from Issue #1985:
|
|
Hi @sanjay-kv, I have resolved issue #1985 in PR #2005. |
There was a problem hiding this comment.
Pull request overview
This PR removes leftover debug console.log statements from visitor-facing frontend components to keep production browser consoles clean and focused on actionable errors.
Changes:
- Removed debug
console.logcalls from the merch page’s Shopify product fetch flow. - Removed debug
console.logcalls from the broadcasts page’s thumbnail loading/error handling logic.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/pages/merch/index.tsx | Removes debug logging during Shopify product fetch and fallback selection. |
| src/pages/broadcasts/index.tsx | Removes debug logging during thumbnail load attempts and image error handling. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| onError={(e) => { | ||
| const img = e.target as HTMLImageElement; | ||
| console.log("Image error:", img.src); | ||
| setThumbnailUrl(""); | ||
| }} |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
markdown.tsx was picked up as a page route by Docusaurus (no default export), breaking SSG for /changelog/markdown. Renamed to _markdown.tsx and updated the import to match.
|
✅ Synchronized metadata from Issue #1985:
|
Description
Removed leftover debug
console.logstatements from production frontend components (src/pages/merch/index.tsxandsrc/pages/broadcasts/index.tsx) that run for every visitor and clutter the browser developer console.Fixes #1985
Type of Change
Changes Made
console.logcalls insrc/pages/merch/index.tsxinsidefetchShopifyProducts().console.logcalls insrc/pages/broadcasts/index.tsxinsidehandleThumbnailError,useEffect, andonErrorimage handlers.console.error) for actual runtime exception tracking.Dependencies
Checklist
npm run buildand attached screenshot(s) in this PR.