fix: path

This commit is contained in:
MasutaYunikon committed 2026-03-20 17:28:09 +01:00
1 parent 418d09b07f
commit 77d918fbe0
8 files changed
+17 -17

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@
import fs from 'fs'
import path from 'path'
import { BASE_DIR } from './config.js'
import { DATA_DIR } from './config.js'
export type LogLevel = 'debug' | 'info' | 'warn' | 'error'
@@ -20,7 +20,7 @@ export interface LogEntry {
meta? : Record<string, any>
}
const LOGS_PATH = path.join(BASE_DIR, 'config', 'logs.jsonl')
const LOGS_PATH = path.join(DATA_DIR, 'config', 'logs.jsonl')
const MAX_LINES = 2000 // rotation auto au-delà
const IS_PROD = process.env.NODE_ENV === 'production'