- Added city, state, and country optional fields to Complex model - Updated onboarding to include optional location fields - Created new settings page with sidebar navigation (Datos del Complejo, Canchas) - Replaced ESLint with Biome for frontend and backend linting - Added parallel dev script with concurrently - Migrated register-routes to use direct app.route() pattern
19 lines
412 B
TypeScript
19 lines
412 B
TypeScript
import pino from 'pino';
|
|
|
|
const isProd = Bun.env.NODE_ENV === 'production';
|
|
|
|
export const logger = pino({
|
|
level: Bun.env.LOG_LEVEL ?? (isProd ? 'info' : 'debug'),
|
|
transport: isProd
|
|
? undefined
|
|
: {
|
|
target: 'pino-pretty',
|
|
options: {
|
|
colorize: true,
|
|
singleLine: true,
|
|
translateTime: 'SYS:standard',
|
|
ignore: 'pid,hostname',
|
|
},
|
|
},
|
|
});
|