Skip to content

Commit

Permalink
fix: 자체서명 인증서 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
leemhoon00 committed Nov 17, 2024
1 parent f4692ee commit 0641508
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/db/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const dialect = new PostgresDialect({
password: process.env.DATABASE_PASSWORD,
port: Number(process.env.DATABASE_PORT),
max: Number(process.env.DATABASE_MAX),
ssl: {
rejectUnauthorized: false,
},
}),
});

Expand Down
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ export const handler: Handler = async () => {
specialCourseService.saveAllCourse(),
]);
};

handler('event', 'context' as any, (error, result) => {
console.log('error:', error);
console.log('result:', result);
});

0 comments on commit 0641508

Please sign in to comment.