chore: revert hardcoded baseUrl
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
"prettier": "@kan/prettier-config",
|
||||
"dependencies": {
|
||||
"jose": "^6.1.2",
|
||||
"nanoid": "^5.0.9"
|
||||
"nanoid": "^5.0.9",
|
||||
"next-runtime-env": "^1.7.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,7 @@ const encoder = new TextEncoder();
|
||||
export async function createEmailUnsubscribeLink(
|
||||
userId: string,
|
||||
): Promise<string | null> {
|
||||
// const baseUrl = env("NEXT_PUBLIC_BASE_URL");
|
||||
const baseUrl = "https://kan.bn";
|
||||
const baseUrl = env("NEXT_PUBLIC_BASE_URL");
|
||||
const secret = process.env.EMAIL_UNSUBSCRIBE_SECRET;
|
||||
|
||||
if (!baseUrl || !secret) {
|
||||
|
||||
Reference in New Issue
Block a user