Conversation
to avoid upstream rate-limiting timeout (504)
|
This branch is running in CodeSandbox. Use the links below to review this PR faster. |
| ...metadata, | ||
| })) | ||
| assets.map(({ value, ...rest }, i) => | ||
| batchDelay(i) |
|
Demo App Preview: https://d11mwnosflssyy.cloudfront.net/ |
Code Coverage ReportCoverage after merging batch-asset-download into main
Coverage Report
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 2aa6bfc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
| @@ -0,0 +1,5 @@ | |||
| /** Customizable Configuration for the Generator */ | |||
There was a problem hiding this comment.
This config can be reused to configure the generator based on project needs, e.g. as an alternative to special tokens
| "src/", | ||
| "./generator-config.ts" |
| .resize( | ||
| width === 'full' // full res version | ||
| ? undefined | ||
| : { | ||
| // resize to max-size, this might sometimes create duplicates, | ||
| // if the source image is small, but this makes the | ||
| width: width, | ||
| height: width, | ||
| fit: 'inside', | ||
| withoutEnlargement: true, | ||
| } | ||
| ) |
There was a problem hiding this comment.
resize based on config and combine with full-res version
| src={src} | ||
| {...srcToSrcSet(src)} |
There was a problem hiding this comment.
Use helper to auto-generate sourceset
Michael was unhappy with something in this commit. Unfortunately I have no recollection of what the issue was.

Largest resolution
Smaller resolution
Also added batching of asset download to work around rate-limiting issues.