Skip to content

Commit 74d3fb4

Browse files
committed
build(lambda): debug env
1 parent 82c331b commit 74d3fb4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

infra/lambda.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ async function bootstrapServer(): Promise<Server> {
2525
throw new Error('Invalid environment variables');
2626
}
2727

28+
console.log(process.env);
2829
const expressApp = express();
2930
const adapter = new ExpressAdapter(expressApp);
31+
3032
const app = await NestFactory.create(AppModule, adapter);
3133

3234
app.enableCors();

src/app/database/database.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { EnvService } from '@/env/env.service';
1414
imports: [EnvModule],
1515
inject: [EnvService],
1616
useFactory: (env: EnvService) => {
17-
console.log('EnvService inside TypeORM:', !!env);
17+
console.log(env);
1818

1919
return {
2020
type: 'mysql',

src/app/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import { HttpExceptionFilter } from '../utils/http.exception.filter';
88
import { AppModule } from './app.module';
99

1010
async function bootstrap(): Promise<void> {
11-
console.log(process.env.API_PORT);
12-
1311
const app = await NestFactory.create(AppModule);
1412

1513
app.useGlobalPipes(

0 commit comments

Comments
 (0)