fix: redirects + update root cdn url
This commit is contained in:
parent
f533a16bdc
commit
693fcbd2b4
24 changed files with 0 additions and 1006 deletions
|
@ -1,7 +0,0 @@
|
|||
# rebuild worker
|
||||
|
||||
```bash
|
||||
wrangler deploy --env production
|
||||
|
||||
wrangler secret put DEPLOY_HOOK_URL --env production
|
||||
```
|
|
@ -1,17 +0,0 @@
|
|||
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');
|
||||
}
|
||||
};
|
|
@ -1,10 +0,0 @@
|
|||
name = "scheduled-rebuild-worker"
|
||||
main = "./index.js"
|
||||
compatibility_date = "2023-01-01"
|
||||
|
||||
account_id = ""
|
||||
workers_dev = true
|
||||
|
||||
[env.production]
|
||||
name = "scheduled-rebuild-worker-production"
|
||||
triggers = {crons = ["0 * * * *"]}
|
Reference in a new issue