-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Describe the feature you'd like to request
i just built my own turborepo cache server with nextjs and it works well locally.
But when i try to deploy it on vercel, i find many upload requests failed beacause of 5MB body size limit.
I try to set 307 status to redirect the upload request to s3 endpoint directly but it does not work.
If the client can preflight HEAD request to the cache server and get the upload endpoint from it, then the artifacts will not need to pass through the cache server at all. I think it will make the server implmentation easier.
Describe the solution you'd like
flowchart TD
A[HEAD /v8/artifact/hash] --> B{cache server};
B -- new endpoint in header --> C[PUT /newEndpoint];
B -- No --> D[PUT /v8/artifact/hash];
Describe alternatives you've considered
NA
jlarmstrongivjlarmstrongiv
Metadata
Metadata
Assignees
Labels
No labels