For Workers & Pages, what is the name of the domain?
https://armadillo-be.tom-73d.workers.dev/
What is the error number?
Error: Handler does not export a scheduled() function
What is the error message?
Error: Handler does not export a scheduled() function
What is the issue or error you’re encountering
My scheduled function matches the documentation
What steps have you taken to resolve the issue?
tried several versions of scheduler function and import/exports
What are the steps to reproduce the issue?
main/index:
import scheduled from ‘./scheduled’;
export { scheduled };
wrangler.toml:
[triggers]
crons = [“*/10 * * * *”]
scheduled.js:
import { updateAllChaletCategories } from ‘./handlers/updateAvailabilityHandler.js’;
export default {
async scheduled(event, env, ctx) {
console.log(‘Scheduled update triggered’);
ctx.waitUntil(updateCategories());
},
};