Updates license checker URL
parent
a9a7d83c45
commit
b2be2f68f5
|
@ -1,7 +1,7 @@
|
||||||
import cache from "memory-cache";
|
import cache from "memory-cache";
|
||||||
|
|
||||||
async function checkLicense(license: string): Promise<boolean> {
|
async function checkLicense(license: string): Promise<boolean> {
|
||||||
const url = `https://cal.com/api/license?key=${license}`;
|
const url = `${process.env.NEXT_PUBLIC_CONSOLE_URL}/api/license?key=${license}`;
|
||||||
const cachedResponse = cache.get(url);
|
const cachedResponse = cache.get(url);
|
||||||
if (cachedResponse) {
|
if (cachedResponse) {
|
||||||
return cachedResponse;
|
return cachedResponse;
|
||||||
|
|
Loading…
Reference in New Issue