diff --git a/scripts/sync.ts b/scripts/sync.ts index cbaeb19..7edb87e 100644 --- a/scripts/sync.ts +++ b/scripts/sync.ts @@ -73,7 +73,10 @@ function parseScore(score: RawScore | undefined) { } async function run() { - const client = postgres(DATABASE_URL, { max: 5 }) + const client = postgres(DATABASE_URL, { + max: 5, + ...(process.env.DB_PASSWORD ? { password: process.env.DB_PASSWORD } : {}), + }) const db = drizzle(client) console.log('Creating tables...')