-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Handle environments where process is not defined #7809
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
[SDK] Handle environments where process is not defined #7809
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: ec48402 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughA conditional check for the existence of the global Changes
Sequence Diagram(s)sequenceDiagram
participant Runtime
participant Code
Note over Code: On constant initialization
Runtime->>Code: Attempt to access process.env.*
alt process is defined
Code->>Code: Use process.env value
else process is undefined
Code->>Code: Assign undefined / skip access
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes detected. Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx}📄 CodeRabbit Inference Engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit Inference Engine (CLAUDE.md)
Files:
🧠 Learnings (8)📚 Learning: applies to dashboard/**/*.{ts,tsx} : accessing server-only environment variables or secrets....Applied to files:
📚 Learning: applies to src/extensions/** : auto-generated contracts from abi definitions in extensions...Applied to files:
📚 Learning: applies to test/src/test-wallets.ts : predefined test accounts are in `test/src/test-wallets.ts`...Applied to files:
📚 Learning: the thirdweb `contract` object is serializable and can safely be used in contexts (e.g., react-query...Applied to files:
📚 Learning: the thirdweb project has an eslint rule that restricts direct usage of `definechain`. when it's nece...Applied to files:
📚 Learning: applies to **/*.test.{ts,tsx} : keep tests deterministic and side-effect free...Applied to files:
📚 Learning: applies to **/*.test.{ts,tsx} : use `forked_ethereum_chain` for mainnet interactions and `anvil_chai...Applied to files:
📚 Learning: when reviewing hooks that use environment variables like next_public_dashboard_thirdweb_client_id fo...Applied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
🔇 Additional comments (4)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
size-limit report 📦
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7809 +/- ##
==========================================
- Coverage 56.33% 56.33% -0.01%
==========================================
Files 905 905
Lines 58806 58809 +3
Branches 4145 4143 -2
==========================================
+ Hits 33130 33131 +1
- Misses 25571 25573 +2
Partials 105 105
🚀 New features to boost your workflow:
|

Fixes BLD-76
Summary by CodeRabbit