File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 11FROM oven/bun:1.1.29
22
3- RUN mkdir -p /etc/ssl/certs/
4- RUN echo "$PGCERT" > /etc/ssl/certs/postgres.crt
5- RUN chmod 600 /etc/ssl/certs/postgres.crt
6- ENV PGCERT_PATH=/etc/ssl/certs/postgres.crt
7-
83WORKDIR /app
94COPY package.json bun.lockb ./
105RUN bun install --production
Original file line number Diff line number Diff line change 5959 const zResult = z .string ().url ().safeParse (url );
6060 return zResult .success ;
6161 });
62- console .log (validUrls .value );
6362 },
6463 {
6564 deep: true
Original file line number Diff line number Diff line change 11import { drizzle } from 'drizzle-orm/node-postgres' ;
22import { Pool } from 'pg' ;
3- import fs from 'node:fs' ;
43
54export const pool = new Pool ( {
65 user : process . env . PGUSER ,
@@ -10,7 +9,7 @@ export const pool = new Pool({
109 port : + ( process . env . PGPORT || 5432 ) ,
1110 ssl : {
1211 rejectUnauthorized : true ,
13- ca : fs . readFileSync ( process . env . PGCERT_PATH || '' ) . toString ( )
12+ ca : process . env . PGCA
1413 }
1514} ) ;
1615
You can’t perform that action at this time.
0 commit comments