-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat: add thirdweb fallback #2808
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
New dependency changes detected. Learn more about Socket for GitHub ↗︎ 🚨 Potential security issues found in this pull request. To accept the risk, merge this PR and you will not be notified again. Bot CommandsTo ignore an alert, reply with a comment starting with
📜 Install scriptsInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts. Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.
Pull request alert summary
📊 Modified Dependency Overview:
🚮 Removed packages: @growthbook/growthbook-react@0.16.0 |
What does this PR do?
🤖 Generated by Copilot at f7bc34c
This pull request adds the option to use Thirdweb's storage service for uploading files to IPFS in the
apps/web
project. It modifies theuploadToIPFS
function, adds the@thirdweb-dev/storage
package, and updates thepnpm-lock.yaml
file with the required dependencies.Related issues
Fixes # (issue)
Type of change
Explanation of the changes
🤖 Generated by Copilot at f7bc34c
@thirdweb-dev/storage
package as a dependency to enable uploading files to IPFS using Thirdweb's service (link, link, link)ThirdwebStorage
class from@thirdweb-dev/storage
package and create a storage client instance inapps/web/src/lib/uploadToIPFS.ts
(link)USE_THIRDWEB
constant to toggle between using Thirdweb's storage or S3 as the backend for uploading files to IPFS inapps/web/src/lib/uploadToIPFS.ts
(link)uploadToIPFS
function to checkUSE_THIRDWEB
constant and calluploadBatch
method of the storage client if true, and map the returned URIs to theMediaSet
type inapps/web/src/lib/uploadToIPFS.ts
(link)@thirdweb-dev/storage
package and its dependencies, such as@assemblyscript/loader
,@multiformats/base-x
,cids
,ipfs-unixfs-importer
,rabin-wasm
, and others inpnpm-lock.yaml
(link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)Emoji
📦🌐🧬