fix: path
This commit is contained in:
1 parent
418d09b07f
commit
77d918fbe0
8 files changed
+17
-17
No files matched your search
+2
-2
@@ -9,9 +9,9 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import crypto from 'crypto'
|
||||
import { BASE_DIR } from './config.js'
|
||||
import { DATA_DIR } from './config.js'
|
||||
|
||||
const SECRET_PATH = path.join(BASE_DIR, 'config', 'secret.key')
|
||||
const SECRET_PATH = path.join(DATA_DIR, 'config', 'secret.key')
|
||||
|
||||
function generateSecret(): string {
|
||||
return crypto.randomBytes(48).toString('hex')
|
||||
|
||||
Reference in new issue
Block a user