Refactor: Replace NTFY_TOPIC with NTFY_URL for flexible notifications

This commit is contained in:
2025-12-15 19:08:16 -08:00
parent 557b4d0770
commit 1d6566db72

View File

@@ -1,6 +1,6 @@
const ntfy = (env,title,msg,p=3) =>
env.NTFY_TOPIC
? fetch(`https://ntfy.sh/${env.NTFY_TOPIC}`,{
env.NTFY_URL
? fetch(env.NTFY_URL,{
method:"POST",
headers:{
"Title":`🆕 ${title}`,