How to schedule a script to run nightly?

I have a script that I would like to run nighty. The script grabs all of our web pages from Sanity, help desk articles from Zendesk, products from Shopify, and blog posts, then sends the results to Algolia for our in-site search function.

I have not worked with Netlify much, so I am unsure if what I am wanting to do is possible. When I search the forum, it looks like mayybeee it’s possible, but I couldn’t find anything definitive.

I don’t want this script to be reliant on any builds as our build cadence is not regular.

You could possibly use a scheduled function

1 Like

Hi @dev406 like Dig said a scheduled function would accomplish this.