Skip to content

Commit

Permalink
test this shit
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboybeer committed Dec 11, 2023
1 parent 006ce3c commit 6b61bc1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"zip": "rm -f latest.zip && zip -r latest.zip ./ -x node_modules/\\* -x package-lock.json -x .DS_Store -x .git/\\*",
"dev": "npx @based/cli dev",
"deploy": "npx @based/cli deploy",
"bundle": "npx aristotle bundle -t app/app.tsx -d dist"
"bundle": "npx aristotle bundle -t cms/index.ts -d dist",
"putOnWebsite": "node scripts/deploy.ts"
},
"prettier": "@saulx/prettier-config",
"eslintConfig": {
Expand Down
8 changes: 8 additions & 0 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// websitehook is for website branch and preview sites only
//
const mainhook =
'https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/5a101718-05f5-4113-b554-5a4efb78a096'

fetch(mainhook, {
method: 'POST',
})

0 comments on commit 6b61bc1

Please sign in to comment.