CRON job doesn't execute the page code

Hi all,

I have created a cron job that call my wix url and the execution seems to succeed.

However, the page code is not executed. The code is working when I access that URL manually.

Do you have any idea how I can execute that code automatically everyday ?

Many thanks,

You should know that for your safety this actions must be performed on the backend. There’s really no way to execute it automatically unless you use an external server to access your site’s API daily

1 Like

You can expose an external endpoint using wix-http-functions that can be invoked by an external cron service. The endpoint code can then run whatever code you need.