chore: pull workers in

This commit is contained in:
Cory Dransfeldt 2024-07-26 18:01:36 -07:00
parent 0bf47f97ad
commit a0f654a1a2
No known key found for this signature in database
15 changed files with 539 additions and 9 deletions

17
workers/rebuild/index.js Normal file
View file

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