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) {
|
||||
|
||||
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@@ -489,6 +489,9 @@ importers:
|
||||
nanoid:
|
||||
specifier: ^5.0.9
|
||||
version: 5.1.5
|
||||
next-runtime-env:
|
||||
specifier: ^1.7.2
|
||||
version: 1.8.0
|
||||
devDependencies:
|
||||
'@kan/eslint-config':
|
||||
specifier: workspace:*
|
||||
|
||||
Reference in New Issue
Block a user