apps/api boots a NestJS application with: Zod-validated environment configuration (schema in @dorfteich/shared, fails fast listing every invalid variable), structured pino request logging via nestjs-pino (pretty in development, JSON otherwise, auth headers redacted), a global exception filter producing the uniform ApiErrorBody shape, and GET /api/v1/healthz. Vitest runs Nest through SWC for decorator metadata; supertest covers healthz and the 404 error shape. Closes #2 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
15 lines
252 B
Plaintext
15 lines
252 B
Plaintext
{
|
|
"$schema": "https://swc.rs/schema.json",
|
|
"jsc": {
|
|
"parser": {
|
|
"syntax": "typescript",
|
|
"decorators": true
|
|
},
|
|
"transform": {
|
|
"legacyDecorator": true,
|
|
"decoratorMetadata": true
|
|
},
|
|
"target": "es2022"
|
|
}
|
|
}
|