Fixed paths
This commit is contained in:
@@ -2,7 +2,7 @@ import { config } from 'dotenv'
|
||||
import { resolve, dirname } from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '../..')
|
||||
|
||||
export function cfg() {
|
||||
config({ path: resolve(ROOT, '.env'), override: true })
|
||||
|
||||
Reference in New Issue
Block a user