diff --git a/packages/nocodb/src/Noco.ts b/packages/nocodb/src/Noco.ts index a14ae10563..942ce717f6 100644 --- a/packages/nocodb/src/Noco.ts +++ b/packages/nocodb/src/Noco.ts @@ -9,6 +9,7 @@ import requestIp from 'request-ip'; import cookieParser from 'cookie-parser'; import { T } from 'nc-help'; import { v4 as uuidv4 } from 'uuid'; +import dotenv from 'dotenv'; import { AppModule } from './app.module'; import { NC_LICENSE_KEY } from './constants'; import Store from './models/Store'; @@ -16,7 +17,8 @@ import { MetaTable } from './utils/globals'; import type { IEventEmitter } from './modules/event-emitter/event-emitter.interface'; import type { Express } from 'express'; import type * as http from 'http'; -require('dotenv').config(); + +dotenv.config(); export default class Noco { private static _this: Noco;