This commit is contained in:
oiov
2025-05-26 16:36:36 +08:00
parent 06f06a8a52
commit af01d60d9b
5 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { Resend } from "resend";
import { env } from "@/env.mjs";
export const resend = new Resend(env.RESEND_API_KEY);
export const resend = new Resend(env.RESEND_API_KEY || "re_key");
export function getVerificationEmailHtml({
url,
-4
View File
@@ -100,10 +100,6 @@ export function formatTime(input: string | number): string {
});
}
export function absoluteUrl(path: string) {
return `${env.NEXT_PUBLIC_APP_URL}${path}`;
}
// Utils from precedent.dev
export const timeAgo = (timestamp: Date, timeOnly?: boolean): string => {
if (!timestamp) return "never";