File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ export async function getToken(){
1717
1818const signer = new Signer ( {
1919hostname : process . env . PGHOST ! ,
20- port : process . env . PGPORT as number ,
21- username : process . env . PGUSER ,
22- region : process . env . AWS_REGION ,
20+ port : Number ( process . env . PGPORT ) ,
21+ username : process . env . PGUSER ! ,
22+ region : process . env . AWS_REGION ! ,
2323credentials : awsCredentialsProvider ( {
2424roleArn : process . env . AWS_ROLE_ARN ! ,
2525} ) ,
@@ -54,10 +54,10 @@ export async function getConnection(): Promise<Pool>{
5454
5555pool = new Pool ( {
5656host : process . env . PGHOST ! ,
57- user : process . env . PGUSER ,
57+ user : process . env . PGUSER ! ,
5858password : token ,
5959database : 'postgres' ,
60- port : process . env . PGPORT as number ,
60+ port : Number ( process . env . PGPORT ) ,
6161ssl : { rejectUnauthorized : false } ,
6262max : 20 ,
6363} ) ;
Original file line number Diff line number Diff line change 11/// <reference types="next" />
22/// <reference types="next/image-types/global" />
3+ /// <reference path="./.next/types/routes.d.ts" />
34
45// NOTE: This file should not be edited
56// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
You can’t perform that action at this time.
0 commit comments