Refactor: Replace NTFY_TOPIC with NTFY_URL for flexible notifications

This commit is contained in:
2025-12-15 19:07:50 -08:00
parent e6ac8052df
commit 4796f84ec2

View File

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