-
Notifications
You must be signed in to change notification settings - Fork 257
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
[Fix] Handle special case for localhost in development environment in isThirdwebUrl function #3369
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: b808652 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 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 |
Your org requires the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
7d6f4e4
to
59c70ea
Compare
CodSpeed Performance ReportMerging #3369 will improve performances by 10.6%Comparing Summary
Benchmarks breakdown
|
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3369 +/- ##
==========================================
+ Coverage 62.85% 62.89% +0.04%
==========================================
Files 862 861 -1
Lines 63908 63843 -65
Branches 3462 3463 +1
==========================================
- Hits 40168 40156 -12
+ Misses 23063 23009 -54
- Partials 677 678 +1
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
fixes: CNCT-1370 |
… isThirdwebUrl function (#3369) ### TL;DR This PR updates the `isThirdwebUrl` function to properly handle the `localhost` hostname in the development environment. ### What changed? - Added a check to see if `process.env.NODE_ENV` is set to `development` - If in development, it checks if the hostname is `localhost` and treats it as a Thirdweb URL ### How to test? - Ensure the application runs in both development and production environments - In development, verify URLs with `localhost` return `true` for `isThirdwebUrl` - In production, verify URLs with `localhost` return `false` for `isThirdwebUrl` ### Why make this change? This change was made to correctly classify `localhost` as a Thirdweb URL when running in a development environment, allowing for better development workflow and environment parity. --- <!-- start pr-codex --> --- ## PR-Codex overview The focus of this PR is to exclude localhost from being considered a thirdweb URL, except in development mode. ### Detailed summary - Excludes localhost from thirdweb URL check in `fetch.ts` except in development mode. - Adds special handling for localhost in development environment. - Improves accuracy of identifying thirdweb URLs. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
59c70ea
to
b808652
Compare
fixes: CNCT-1370
TL;DR
This PR updates the
isThirdwebUrl
function to properly handle thelocalhost
hostname in the development environment.What changed?
process.env.NODE_ENV
is set todevelopment
localhost
and treats it as a Thirdweb URLHow to test?
localhost
returntrue
forisThirdwebUrl
localhost
returnfalse
forisThirdwebUrl
Why make this change?
This change was made to correctly classify
localhost
as a Thirdweb URL when running in a development environment, allowing for better development workflow and environment parity.PR-Codex overview
The focus of this PR is to exclude localhost from being considered a thirdweb URL, except in development mode.
Detailed summary
fetch.ts
except in development mode.