Refactor: Replace NTFY_TOPIC with NTFY_URL for flexible notifications

This commit is contained in:
2025-12-15 19:05:05 -08:00
parent d3525472cd
commit a42e30f5c8

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}`,