Browse Source

Merge pull request #5685 from nocodb/fix/5673-read-env-file

fix: Read env file on app app load
pull/5686/head
Pranav C 2 years ago committed by GitHub
parent
commit
e5a4914624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nocodb/src/Noco.ts

3
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';
@ -17,6 +18,8 @@ import type { IEventEmitter } from './modules/event-emitter/event-emitter.interf
import type { Express } from 'express';
import type * as http from 'http';
dotenv.config();
export default class Noco {
private static _this: Noco;
private static ee: boolean;

Loading…
Cancel
Save