diff --git a/packages/apps/graph/.env.example b/packages/apps/graph/.env.example index 22e35869c1..7185cb4c2d 100644 --- a/packages/apps/graph/.env.example +++ b/packages/apps/graph/.env.example @@ -6,7 +6,7 @@ COMPLEXITY_ENABLED=false COMPLEXITY_EXPOSED=false # Database -DATABASE_URL="postgresql://devnet@localhost:5432/devnet" +DATABASE_URL="postgresql://devnet@localhost:5432/devnet?pool_timeout=0" # This variable determines the maximum calculated block confirmation depth. MAX_CALCULATED_BLOCK_CONFIRMATION_DEPTH=7 diff --git a/packages/apps/graph/src/utils/dotenv.ts b/packages/apps/graph/src/utils/dotenv.ts index 2b3356b0cf..60243503e4 100644 --- a/packages/apps/graph/src/utils/dotenv.ts +++ b/packages/apps/graph/src/utils/dotenv.ts @@ -41,7 +41,7 @@ export const dotenv: { ), DATABASE_URL: or( process.env.DATABASE_URL, - 'postgresql://devnet@localhost:5432/devnet', + 'postgresql://devnet@localhost:5432/devnet?pool_timeout=0', ), MAX_CALCULATED_BLOCK_CONFIRMATION_DEPTH: parseInt( or(process.env.MAX_CALCULATED_BLOCK_CONFIRMATION_DEPTH, '7'),