fixup
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user