Sync static collection on self hosted project

I have a static collection in a self hosted project (Cloudflare), which needs to be updated regularly. (I know there is this workaround with the dynamic Metadata on Cloudflare) but I would have to change structure of the App again.. This is why I would like to stick to a static collections.

As I selfhost I can’t use the sync collection hook but the hook basically just pulls the data freshly. The hook url seems to just fetch a collection from my understanding using a workflow is this correct? I found this workflow:

Does it work if I just set up a Cloudflare worker or even build script that triggers this workflow to have this data up to date (after redeploying)?

Probably a question for the weweb dev team :slight_smile: @Alexis

1 Like

Hi Joel :waving_hand:

This looks like an advanced question, I’ll see if the team has an answer for this.

any update on this? i have to integrate this in the next days..

Hi @jayjay13

Thanks for asking. Currently, this is only possible with the Public API, which is only available on Enterprise plans. You would need to trigger the publication with the public API and have a function scheduled within Cloudflare to make a call to the WeWeb API to redeploy.

1 Like