forked from jappel/leistungsbilanz-ts
Adds a leveled JSON logger (error/warn/info/verbose/debug, controlled via LOG_LEVEL) wired into the Express API (access log, error middleware, crash handlers, memory heartbeat) and the Next.js server (page-request proxy, instrumentation crash handlers, heartbeat). LOG_LEVEL is exposed through compose.yaml, and both services now rotate their Docker logs (json-file, 20m x 10 files) instead of growing unbounded. Intended to capture long-running diagnostic data for the intermittent 502s seen on the Docker host. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
27 lines
637 B
JSON
27 lines
637 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"incremental": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"lib": ["DOM", "DOM.Iterable", "ES2022"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"noEmit": true,
|
|
"rootDir": ".",
|
|
"plugins": [{ "name": "next" }]
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"src/app/**/*.ts",
|
|
"src/app/**/*.tsx",
|
|
"src/frontend/**/*.ts",
|
|
"src/frontend/**/*.tsx",
|
|
"src/proxy.ts",
|
|
"src/instrumentation.ts",
|
|
"src/instrumentation-node.ts",
|
|
".next/types/**/*.ts"
|
|
],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|