feat(cloud): add notification client (#253)

This commit is contained in:
Henry
2025-11-24 22:20:34 +00:00
committed by GitHub
parent 64aace6e3b
commit fc65f53e0c
9 changed files with 59 additions and 48 deletions

View File

@@ -0,0 +1,6 @@
import { Novu } from "@novu/api";
export const notificationClient =
process.env.NEXT_PUBLIC_KAN_ENV === "cloud" && process.env.NOVU_API_KEY
? new Novu({ secretKey: process.env.NOVU_API_KEY })
: null;