Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ jobs:
- name: Typecheck
run: task typecheck

- name: Build
run: pnpm build

- name: Integration Tests
run: task ci-test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"migrate": "ts-node tools/migrate.ts",
"migrate": "node dist/src/tools/migrate.js",
"start": "nest start",
"start:debug": "nest start --debug --watch",
"start:dev": "nest start --watch",
Expand Down
4 changes: 0 additions & 4 deletions src/infrastructure/logging/logger.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ import { LoggerModule } from 'nestjs-pino';

return {
pinoHttp: {
// Correlation ID: Ensure each request gets a unique ID
genReqId: (req: IncomingMessage) => {
return req.headers['x-correlation-id'] || randomUUID();
},
// PII Masking: auto mask sensitive fields
redact: {
paths: [
'req.headers.authorization',
Expand All @@ -34,7 +32,6 @@ import { LoggerModule } from 'nestjs-pino';
],
censor: '***',
},
// Pretty Print ONLY when not in production and NOT in test
transport:
!isProduction && !isTest
? {
Expand All @@ -45,7 +42,6 @@ import { LoggerModule } from 'nestjs-pino';
},
}
: undefined,
// JSON format is default in pino for production and tests
},
};
},
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ async function bootstrap() {
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('docs', app, document);

await app.listen(process.env.PORT || 3000);
const port = Number(process.env.PORT) || 3000;
await app.listen(port);
}

bootstrap().catch((error: unknown) => {
Expand Down
File renamed without changes.
Loading