jspm / project

Roadmap and management repo for the jspm project
161 stars 8 forks source link

CDN rebuild API #164

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

It would be beneficial to update the build queue request API (https://jspm.org/docs/api) with the ability to trigger rebuilds as well for packages that have build issues that need updating.

The main API integration work here is just linking into the AWS invalidation API (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateInvalidation.html) once the rebuild is complete, but this should be straightforward.

huntercaron commented 2 years ago

Hey @guybedford our users still run into this decently often, is there any sort of quick solution possible here?

guybedford commented 2 years ago

@huntercaron sure, I will prioritise this this week.

guybedford commented 2 years ago

Also, if there are specific packages you need done now, please just let me know here or on chat.

huntercaron commented 2 years ago

A couple from this week are react-timer-hook and shadertoy-react

guybedford commented 2 years ago

@huntercaron sure I've just cleared both of those at the latest versions, and the cache should have invalidated by now. If either is still not working just let me know and if there's a replication I can look at.

guybedford commented 2 years ago

Did these work for you?

guybedford commented 2 years ago

Got completely swamped this last week, I'll pick it up again next if there's still interest.

guybedford commented 2 years ago

(and I'm always available on DM for issues)

guybedford commented 2 years ago

This feature has now been implemented using a privileged version of the build API that will support rebuilds with cache invalidation of the CDN. @huntercaron I will forward you the details. If anyone else has a strong reason to need access to this API, please DM me and I can provide a unique token for you.