From b936e2c850e595cb244034c803d9084e6a778147 Mon Sep 17 00:00:00 2001 From: mizanmahi Date: Mon, 7 Oct 2024 20:19:27 +0600 Subject: [PATCH] add: postgres from neon --- .env.example | 1 + src/app/middlewares/globalErrorHandler.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.env.example b/.env.example index cc10373..87585ec 100644 --- a/.env.example +++ b/.env.example @@ -2,6 +2,7 @@ NODE_ENV="development" PORT=5000 # DATABASE_URL="postgresql://postgres:123456@localhost:5432/mydb?blogdb=public" +# DATABASE_URL=postgresql://postgres:nextblogrds@db-nextblog.c72qycyeiylo.ap-southeast-1.rds.amazonaws.com:5432/nextblog -> aws rds DATABASE_URL="your database url" diff --git a/src/app/middlewares/globalErrorHandler.ts b/src/app/middlewares/globalErrorHandler.ts index dbfce85..fbd3125 100644 --- a/src/app/middlewares/globalErrorHandler.ts +++ b/src/app/middlewares/globalErrorHandler.ts @@ -17,3 +17,8 @@ const globalErrorHandler = ( }; export default globalErrorHandler; + + + + +