mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 14:21:08 +10:00
Fix env path for Nestjs
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
import * as path from 'path';
|
||||
|
||||
export function generateHostname(name: string): string {
|
||||
let hostname = name.replace(/[^a-z0-9]/gi, '').toLowerCase();
|
||||
hostname = hostname.substring(0, 30);
|
||||
return hostname;
|
||||
}
|
||||
|
||||
export const envPath = path.resolve(process.cwd(), '..', '..', '.env');
|
||||
|
||||
Reference in New Issue
Block a user