Skip to content

🧹 [code health] remove unused cspEmbed variable#20

Merged
Dexploarer merged 1 commit into
mainfrom
fix-unused-cspembed-7383390751155876030
May 3, 2026
Merged

🧹 [code health] remove unused cspEmbed variable#20
Dexploarer merged 1 commit into
mainfrom
fix-unused-cspembed-7383390751155876030

Conversation

@Dexploarer

Copy link
Copy Markdown
Collaborator

🎯 What: Removed the unused cspEmbed variable and its associated comments from apps/web/next.config.ts.
💡 Why: This variable was declared but never referenced, making it dead code. Removing it improves the readability and maintainability of the configuration file.
Verification: Verified that the variable is not used anywhere in the codebase. Confirmed that apps/web/next.config.ts remains syntactically correct using bun build --no-bundle and verified no regressions by running existing tests in apps/web.
Result: Reduced dead code in the configuration file.


PR created automatically by Jules for task 7383390751155876030 started by @Dexploarer

The `cspEmbed` variable was declared but not referenced anywhere.
Removing it improves code health and maintainability.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gitshipt Error Error May 1, 2026 3:31pm

@coderabbitai

coderabbitai Bot commented May 1, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Dexploarer has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 60 minutes before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b182009a-b589-4410-8317-f701be641dc8

📥 Commits

Reviewing files that changed from the base of the PR and between 53f93cf and da53290.

📒 Files selected for processing (1)
  • apps/web/next.config.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-unused-cspembed-7383390751155876030

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request removes the unused cspEmbed constant from the Next.js configuration file. The reviewer noted that this removal leaves several other related variables, such as cspStrict and cspReportOnly, as dead code and suggested their removal to improve code health and maintainability.

I am having trouble creating individual review comments. Click here to see my feedback.

apps/web/next.config.ts (137-139)

medium

While this change removes the unused cspEmbed variable, it leaves several other related variables as dead code. Specifically, cspStrict (line 80) was only used by cspEmbed and is now unused. Furthermore, cspReportOnly, cspReportOnlyEmbed, reportOnlyHeader, and reportOnlyEmbedHeader (lines 97-130) also appear to be unused in the nextConfig object. Since the goal of this PR is code health and dead code removal, these variables and their associated logic should also be removed to keep the configuration file clean and maintainable.

@Dexploarer Dexploarer merged commit 7046136 into main May 3, 2026
5 of 8 checks passed
@Dexploarer Dexploarer deleted the fix-unused-cspembed-7383390751155876030 branch May 3, 2026 08:01
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.

1 participant