update envPath code

This commit is contained in:
Philipinho
2024-03-24 17:02:35 +00:00
parent d855152dda
commit b44795eea3

View File

@ -1,4 +1,4 @@
import * as path from 'path';
import { join } from 'path';
export function generateHostname(name: string): string {
let hostname = name.replace(/[^a-z0-9]/gi, '').toLowerCase();
@ -6,4 +6,4 @@ export function generateHostname(name: string): string {
return hostname;
}
export const envPath = path.resolve(process.cwd(), '..', '..', '.env');
export const envPath = join(__dirname, '..', '..', '..', '.env');