Sync Static Collections Automatically?

Hello, long time no see, I’m back :slight_smile:

I’m working on a project for a client (a Real Estate Listing) and we’re needing to use SEO, I’m thinking of doing Static Collections, but I’m wondering if there is a way to Resync REST API (in my case I’m fetching from Supabase) programmatically on each new property listing. Now if I understand it correctly, it would be required to actually go there and Publish each time to sync it.

Has anyone found any way? I’ve seen some API routes to reset this, but is it even relevant with the pace that WeWeb is evolving?

Take a look at this comment and thread.

Hey @caffeinatedwes so you’re saying that I can republish the app with the Sync All the Collection hook? Or is it some other webhook? If it’s something other, could you reference it for me please?

For now I’ve made a compromise with an if statement that basically checks whether the page is in a static collection, and if it is not, then it loads the dynamic equivalent with the same url, just as a dynamic collection. Then when the item is fetched, the if statement actually renders the page as static collection page.

It would be cool to have this fetched automatically though.