chore: normalize formatting for workers

This commit is contained in:
Cory Dransfeldt 2024-10-19 19:53:31 -07:00
parent 2f6cfbe7ae
commit 2cd835d31b
No known key found for this signature in database
14 changed files with 879 additions and 604 deletions

View file

@ -1,17 +1,20 @@
export default {
async scheduled(event, env, ctx) {
const deployHookUrl = env.DEPLOY_HOOK_URL
const deployHookUrl = env.DEPLOY_HOOK_URL;
const response = await fetch(deployHookUrl, {
method: 'POST',
})
method: "POST",
});
if (!response.ok) {
const errorText = await response.text()
console.error(`Error triggering deploy: ${response.statusText}`, errorText)
return
const errorText = await response.text();
console.error(
`Error triggering deploy: ${response.statusText}`,
errorText
);
return;
}
console.log('Deploy triggered successfully')
}
}
console.log("Deploy triggered successfully");
},
};