mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 22:11:16 +10:00
Fix env path for Nestjs
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
import { DataSource } from 'typeorm';
|
||||
import * as dotenv from 'dotenv';
|
||||
import { NamingStrategy } from './naming-strategy';
|
||||
import * as path from 'path';
|
||||
const envPath = path.resolve(process.cwd(), '..', '..', '.env');
|
||||
import { envPath } from '../helpers/utils';
|
||||
|
||||
dotenv.config({ path: envPath });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user