Scheduled function no longer works after deploy

I’m new to js development and Netlify but I managed to create a little API to Hubspot sync app using ai. It uses a scheduled function to periodically check for new data. When served locally (with netlify functions:serve) it works as expected but once deployed nothing happens and no logs are created.

my function (scheduled-function.mjs, as per Scheduled Functions | Netlify Docs):

export default async (req) => {
    const { next_run } = await req.json();
    await syncZabunToHubSpot();
    console.log("Next invocation at:", next_run);
}

The setup & toml config seems correct as the scheduled function is appearing in the cp:

I tried some things described in other topics such as removing the site and creating a new one and making sure im on main/production branch.

My site name: https://koramicsync.netlify.app/

I’d appreciate any guidance on how to get this to work on production.

Thank you.

I’d appreciate any help with this issue :pray:

You seem to have an invalid redirect, could you try removing it?

I did have a redirect in my toml from = “/*” to my function. Once removed everything works.

Thank you, Hrishikesh. Much appreciated :pray: