Skip to content

Possible to request update to prod-packager-packages by API call when we publish new dependencies to npm? #1246

Open
@stevelewis99

Description

We are using sandpack to showcase what is possible with our SDK, and it's working great.

Each time we update the site to point to the new release of our packages, there can be a few minutes delay on first load since the packages are not in your cache already. Since I am testing it first, for my region it's ok by the time we publish.

Other users in different geos experience the same delay when they access our site, and if possible it would be ideal if we can do something to get ahead before pushing site updates.

Looking at browser traffic, it seems there is a lambda function called when the package is not available, to initiate the cache population (I think) - but since this function is different per AWS region we have that regional problem.

@CompuIves If you can think of any workaround (I don't mind making some manual GET requests, if you can share the endpoints for each region, since I only have eu-west-1 now) I would be very grateful!

edit: I should add, I'm making some assumptions here, that there are different regions used, based on reports from my colleagues. I may be wrong

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions