Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Mar 31, 2025


PR-Codex overview

This PR updates the Content Security Policy (CSP) in the next.config.mjs file to enhance security by modifying the script-src directive.

Detailed summary

  • Updated the script-src directive to include thirdweb.com and thirdweb-dev.com without the wildcard prefix.
  • Retained existing sources in the script-src directive.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@linear
Copy link

linear bot commented Mar 31, 2025

@vercel
Copy link

vercel bot commented Mar 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 31, 2025 5:51pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
login ⬜️ Skipped (Inspect) Mar 31, 2025 5:51pm
thirdweb_playground ⬜️ Skipped (Inspect) Mar 31, 2025 5:51pm
thirdweb-www ⬜️ Skipped (Inspect) Mar 31, 2025 5:51pm
wallet-ui ⬜️ Skipped (Inspect) Mar 31, 2025 5:51pm

@vercel vercel bot temporarily deployed to Preview – wallet-ui March 31, 2025 16:44 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www March 31, 2025 16:44 Inactive
@vercel vercel bot temporarily deployed to Preview – login March 31, 2025 16:44 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Mar 31, 2025

⚠️ No Changeset found

Latest commit: 3d140ee

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground March 31, 2025 16:44 Inactive
@MananTank MananTank marked this pull request as ready for review March 31, 2025 16:44
@MananTank MananTank requested review from a team as code owners March 31, 2025 16:44
@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Mar 31, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.96%. Comparing base (a5f005f) to head (3d140ee).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6591   +/-   ##
=======================================
  Coverage   54.96%   54.96%           
=======================================
  Files         885      885           
  Lines       55517    55517           
  Branches     3793     3793           
=======================================
  Hits        30513    30513           
  Misses      24911    24911           
  Partials       93       93           
Flag Coverage Δ
packages 54.96% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 31, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.56 KB (0%) 952 ms (0%) 128 ms (+114.18% 🔺) 1.1 s
thirdweb (cjs) 127.31 KB (0%) 2.6 s (0%) 204 ms (+27.93% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 53 ms (+1091.7% 🔺) 165 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 29 ms (+1719.49% 🔺) 39 ms
thirdweb/react (minimal + tree-shaking) 19.34 KB (0%) 387 ms (0%) 74 ms (+526.98% 🔺) 460 ms

@MananTank MananTank changed the title [TOOL-3874] Portal: Fix posthog script CSP error [TOOL-3874] Portal: Fix pl.js script CSP error Mar 31, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 31, 2025

Merge activity

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the Content Security Policy in the `next.config.mjs` file to enhance security by modifying the `script-src` directive.

### Detailed summary
- Updated the `script-src` directive to include `thirdweb.com` and `thirdweb-dev.com` without a wildcard prefix.
- Retained existing sources for `self`, `unsafe-eval`, `unsafe-inline`, `wasm-unsafe-eval`, `inline-speculation-rules`, `vercel.live`, and `js.stripe.com`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground March 31, 2025 17:44 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui March 31, 2025 17:44 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www March 31, 2025 17:44 Inactive
@vercel vercel bot temporarily deployed to Preview – login March 31, 2025 17:44 Inactive
@graphite-app graphite-app bot merged commit 3d140ee into main Mar 31, 2025
32 checks passed
@graphite-app graphite-app bot deleted the tool-3874 branch March 31, 2025 17:51
@vercel vercel bot temporarily deployed to Production – wallet-ui March 31, 2025 17:51 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb-www March 31, 2025 17:51 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants