You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Hello. So I'm using scheduled functions and along with the dev env/mode it's working fine, I can serve it and invoke it. But as long I'm putting this to the server I have this error:
The package is defined as a dependency in the package.json, and this is my function:
const{ schedule }=require('@netlify/functions')exports.handler=schedule('@hourly',async(event)=>{consteventBody=JSON.parse(event.body)console.log(`Next function run at ${eventBody.next_run}.`)// function initreturn{statusCode: 200,}})