Skip to content

Remove commented-out AdSense script block#357

Open
DSingh0304 wants to merge 2 commits intokeploy:mainfrom
DSingh0304:main
Open

Remove commented-out AdSense script block#357
DSingh0304 wants to merge 2 commits intokeploy:mainfrom
DSingh0304:main

Conversation

@DSingh0304
Copy link
Copy Markdown
Contributor

@DSingh0304 DSingh0304 commented Apr 2, 2026

Description

PR #249 commented out the Google AdSense <Script /> block in pages/_document.tsx but left the JSX inside the block comment. ESLint's react/jsx-no-undef rule parses JSX component names even inside block comments, which caused a compile error and broke the Playwright e2e CI pipeline.

This PR removes the dead commented-out block entirely to fix the CI failure.

Changes

  • Removed commented-out AdSense <Script /> block from <Head> in pages/_document.tsx

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • CI (updates to continuous integration workflows)

Testing

The Playwright e2e CI was failing with:

Error: 'Script' is not defined. react/jsx-no-undef

Removing the commented block resolves the compile error and allows the web server to start successfully.

Environment and Dependencies

  • New Dependencies: None
  • Configuration Changes: None

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have run the build command to ensure there are no build errors

Signed-off-by: Deep <deep@example.com>
Copilot AI review requested due to automatic review settings April 2, 2026 11:57
@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot Bot commented Apr 2, 2026

Kilo Code Review could not run — your account is out of credits.

Add credits or switch to a free model to enable reviews on this change.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a dead, commented-out Google AdSense <Script /> JSX block from the custom Next.js Document to prevent lint/compile failures during CI runs.

Changes:

  • Deleted the commented-out AdSense <Script /> block from pages/_document.tsx <Head>.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pages/_document.tsx
@dhananjay6561 dhananjay6561 requested a review from Copilot April 6, 2026 12:04
@dhananjay6561
Copy link
Copy Markdown
Member

Hey @DSingh0304 👋 — thanks so much for contributing to the project, really appreciate it!

Your PR looks great and has been marked for merging. Here's a quick note from the reviewer:

Clean dead code removal. Zero risk.

We'll get this merged in soon. Keep the great work coming! 🚀

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Deep Shekhar Singh <deepshekhar0306@gmail.com>
@DSingh0304
Copy link
Copy Markdown
Contributor Author

Hey @DSingh0304 👋 — thanks so much for contributing to the project, really appreciate it!

Your PR looks great and has been marked for merging. Here's a quick note from the reviewer:

Clean dead code removal. Zero risk.

We'll get this merged in soon. Keep the great work coming! 🚀

Thank you sir!!

@dhananjay6561 dhananjay6561 self-assigned this Apr 15, 2026
@dhananjay6561 dhananjay6561 self-requested a review April 15, 2026 05:11
Copy link
Copy Markdown
Member

@dhananjay6561 dhananjay6561 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amaan-bhati LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants