This commit is contained in:
Luiz Silva 2025-02-22 17:46:02 -03:00
parent 505f64f70b
commit 6a0da63093
4 changed files with 7 additions and 4 deletions

View file

@ -46,7 +46,9 @@ export const logger =
app = `DEV-${app}`
}
if (__filename && typeof process != "undefined" && process.cwd()) {
const isNode = typeof process !== "undefined" && process.versions?.node
if (isNode && __filename) {
__filename = __filename.replace(process.cwd(), "")
}
if (local) {