Skip to content

Commit beab0b0

Browse files
committed
prioritize ENDPOINT in bind
1 parent f0a153c commit beab0b0

File tree

1 file changed

+1
-1
lines changed
  • multichannel-app/frontend/app/api/admin/bind

1 file changed

+1
-1
lines changed

multichannel-app/frontend/app/api/admin/bind/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const GET = async (_req: Request) => {
1111
const phone_number = VONAGE_LVN;
1212
const application_id = VONAGE_APPLICATION_ID;
1313
const endpoint = process.env.ENDPOINT;
14-
const webhooks_host = process.env.NEXT_PUBLIC_VERCEL_URL ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`:endpoint;
14+
const webhooks_host = process.env.ENDPOINT ? endpoint: `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
1515
const WEBHOOKS_URL = `${webhooks_host}/api`;
1616
const api_key = VONAGE_API_KEY;
1717
const api_secret = VONAGE_API_SECRET;

0 commit comments

Comments
 (0)