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,7 +1,8 @@
import { generateApiKey } from 'generate-api-key';
import axios from 'axios';
import { cloudServerUrl } from '../../Utils.js';
export default async function generateApiToken(request) {
const serverUrl = process.env.SERVER_URL;
const serverUrl = cloudServerUrl; //process.env.SERVER_URL;
try {
const userRes = await axios.get(serverUrl + '/users/me', {
headers: {