commit 278edf3267a299943702d9b161625dbd72e2f800
parent 5dd2e20b2a0af378477089eee8a01c40c52532f9
Author: DAEMON <zer0sec.xp@icloud.com>
Date: Thu, 17 Sep 2026 00:51:29 +0100
Add Cloudflare Workers deployment config
wrangler.jsonc for the assets-based Workers deploy (cheatsheet.daemon-sec.xyz),
plus npm scripts to rebuild and redeploy with the oversized tool binaries
excluded via .assetsignore.
Diffstat:
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/package.json b/package.json
@@ -10,7 +10,9 @@
"test": "astro build && node --test",
"preview": "astro preview",
"pagefind:public": "rm -rf public/pagefind && cp -R dist/pagefind public/pagefind",
- "astro": "astro"
+ "astro": "astro",
+ "assetsignore:workers": "printf 'downloads/pentest-workflow/ysoserial-all.jar\\ndownloads/pentest-workflow/gowitness_linux_amd64\\ndownloads/pentest-workflow/gowitness_windows_amd64.exe\\n' > dist/.assetsignore",
+ "deploy:workers": "npm run build && npm run assetsignore:workers && npx wrangler deploy"
},
"dependencies": {
"@astrojs/mdx": "^4.2.0",
diff --git a/wrangler.jsonc b/wrangler.jsonc
@@ -0,0 +1,15 @@
+{
+ "$schema": "node_modules/wrangler/config-schema.json",
+ "name": "daemon-sec-cheatsheet",
+ "compatibility_date": "2026-09-17",
+ "assets": {
+ "directory": "dist",
+ "not_found_handling": "404-page"
+ },
+ "routes": [
+ { "pattern": "cheatsheet.daemon-sec.xyz", "custom_domain": true }
+ ],
+ "observability": {
+ "enabled": true
+ }
+}