Initial commit

This commit is contained in:
2026-03-08 01:34:54 +08:00
commit 1f104f73c8
441 changed files with 64911 additions and 0 deletions

15
api/utils/logger.ts Normal file
View File

@@ -0,0 +1,15 @@
type LogFn = (...args: unknown[]) => void
const createLogger = () => {
const isProd = process.env.NODE_ENV === 'production'
const debug: LogFn = isProd ? () => {} : console.debug.bind(console)
const info: LogFn = console.info.bind(console)
const warn: LogFn = console.warn.bind(console)
const error: LogFn = console.error.bind(console)
return { debug, info, warn, error }
}
export const logger = createLogger()