feat: migrate sts + ipfs worker to next api #4017
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
🤖[deprecated] Generated by Copilot at 9a229ab
This pull request migrates the STS token generation and IPFS pinning logic from Cloudflare workers to Next.js API routes. It updates the dependencies, environment variables, constants, and URLs to reflect this change. It also deletes the unused worker packages and files.
Related issues
Fixes # (issue)
Type of change
Explanation of the changes
🤖[deprecated] Generated by Copilot at 9a229ab
packages/workers/sts/src/handlers/getStsToken.ts
toapps/api/pages/api/sts/token.ts
and update the imports accordingly (link)process.env
object and cast them as strings (link)res.status().json()
method (link)allowCors
middleware to enable CORS for the API endpoint (link)STS_GENERATOR_WORKER_URL
constant to use theHEY_API_URL
constant instead in theapps/web/src/lib/uploadToIPFS.ts
file (link)getS3Client
function (link)docs/ports.md
file (link)STS_GENERATOR_WORKER_URL
constant from thepackages/data/constants.ts
file (link)packages/workers/sts
package from thepnpm-lock.yaml
file (link)packages/workers/sts
package (link, link, link, link, link, link, link, link, link, link)apps/api/pages/api/ipfs/pin.ts
which defines a handler for the/ipfs/pin
API endpoint (link)uploadToIPFS
function (link)packages/workers/pro
package from thepnpm-lock.yaml
file (link)@aws-sdk/client-sts
dependency to theapps/api/package.json
andpnpm-lock.yaml
files (link, link)apps/api/.env.example
file for the Ever and IPFS services (link)Emoji
📁📌🚀