fix: add config.ts with config variable (BASE_DIR...)

This commit is contained in:
MasutaYunikon committed 2026-03-20 16:55:03 +01:00
1 parent d1ccc902da
commit 2efed9dcfc
8 files changed
+26 -32

No files matched your search

+2 -1
View File
@@ -4,8 +4,9 @@ import bcrypt from 'bcryptjs'
import jwt from 'jsonwebtoken'
import type { Request, Response, NextFunction } from 'express'
import { JWT_SECRET } from './secret.js'
import { BASE_DIR } from './config.js'
const DATA_PATH = path.join(process.cwd(), 'config', 'auth.json')
const DATA_PATH = path.join(BASE_DIR, 'config', 'auth.json')
const SALT_ROUNDS = 10
interface AuthData {