silverwolf-x's picture
download
raw
470 Bytes
import { randomBytes } from 'node:crypto'
let _traceGlobals: Map<any, any> = (global as any)._traceGlobals
if (!_traceGlobals) {
_traceGlobals = new Map()
}
;(global as any)._traceGlobals = _traceGlobals
export const traceGlobals: Map<any, any> = _traceGlobals
export const setGlobal = (key: any, val: any) => {
traceGlobals.set(key, val)
}
export const traceId =
process.env.TRACE_ID ||
process.env.NEXT_PRIVATE_TRACE_ID ||
randomBytes(8).toString('hex')

Xet Storage Details

Size:
470 Bytes
·
Xet hash:
7f7f01a7adb25d077b8dec761b38e74e8964db362f79b92e2bbd5b11d9df0cc3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.