mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-13 16:17:54 +00:00
Refactor: Use NTFY_URL env var instead of constructing from NTFY_TOPIC
This commit is contained in:
@@ -20,7 +20,7 @@ export async function onRequestPost({ request, env }) {
|
||||
return new Response(`{"error":"Resend error: ${text}"}`, { status: 500, headers: { 'Content-Type': 'application/json' } });
|
||||
}
|
||||
|
||||
await fetch(`https://ntfy.sh/${env.NTFY_TOPIC}`, {
|
||||
await fetch(env.NTFY_URL, {
|
||||
method: 'POST',
|
||||
headers: { Priority: '3', Title: `📬 ${geo}` },
|
||||
body: email
|
||||
|
||||
Reference in New Issue
Block a user