diff --git a/src/api/v0/index.js b/src/api/v0/index.js index 5358a0f..f25e39a 100644 --- a/src/api/v0/index.js +++ b/src/api/v0/index.js @@ -31,7 +31,8 @@ import express from 'express' import { check, validationResult } from 'express-validator' import Ajv from 'ajv' import { generateWKDProfile, generateHKPProfile } from '../../server/index.js' -import 'dotenv/config.js' +import * as dotenv from 'dotenv' +dotenv.config() const router = express.Router() const ajv = new Ajv({ coerceTypes: true }) diff --git a/src/api/v2/keyoxide_profile.js b/src/api/v2/keyoxide_profile.js index 704e02f..72fd80f 100644 --- a/src/api/v2/keyoxide_profile.js +++ b/src/api/v2/keyoxide_profile.js @@ -31,7 +31,8 @@ import express from 'express' import { check, validationResult } from 'express-validator' import Ajv from 'ajv' import { generateWKDProfile, generateHKPProfile } from '../../server/index.js' -import 'dotenv/config.js' +import * as dotenv from 'dotenv' +dotenv.config() const router = express.Router() const ajv = new Ajv({ coerceTypes: true }) diff --git a/src/api/v2/proxy_get.js b/src/api/v2/proxy_get.js index df28273..a043a09 100644 --- a/src/api/v2/proxy_get.js +++ b/src/api/v2/proxy_get.js @@ -30,7 +30,8 @@ more information on this, and how to apply and follow the GNU AGPL, see