fix: getaddrinfo ENOTFOUND while creating admin

This commit is contained in:
prafull-opensignlabs
2024-07-30 16:53:36 +05:30
parent 44754095fb
commit 299648b8e0
32 changed files with 99 additions and 52 deletions
@@ -1,6 +1,7 @@
import axios from 'axios';
import { cloudServerUrl } from '../../Utils.js';
export default async function savewebhook(request) {
const serverUrl = process.env.SERVER_URL;
const serverUrl = cloudServerUrl; //process.env.SERVER_URL;
try {
const userRes = await axios.get(serverUrl + '/users/me', {
headers: {