This commit is contained in:
Stefan Lazic committed 2026-08-03 21:15:24 +01:00
1 parent ec5583f972
commit 546613e677
189 files changed
+9873 -655

No files matched your search

@@ -0,0 +1,19 @@
import type { PushProvider, PushSendResult, SendPushParams } from "./push-provider";
/** Dev-only — see console-email-provider.ts for the same pattern and reasoning. */
export class ConsolePushProvider implements PushProvider {
readonly name = "console";
async sendPush(params: SendPushParams): Promise<PushSendResult> {
console.log(
[
"──── [ConsolePushProvider] would send a push (not actually sent) ────",
`Endpoint: ${params.subscription.endpoint.slice(0, 60)}...`,
`Title: ${params.title}`,
`Body: ${params.body}`,
"────────────────────────────────────────────────────────────────────",
].join("\n"),
);
return { status: "sent" };
}
}