fix(mc-api): use COMPLIANCE_DATABASE_URL for production DB
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,9 @@ import { NextRequest, NextResponse } from 'next/server'
|
|||||||
import { Pool } from 'pg'
|
import { Pool } from 'pg'
|
||||||
|
|
||||||
const pool = new Pool({
|
const pool = new Pool({
|
||||||
connectionString: process.env.DATABASE_URL || 'postgresql://breakpilot:breakpilot123@bp-core-postgres:5432/breakpilot_db',
|
connectionString: process.env.COMPLIANCE_DATABASE_URL ||
|
||||||
|
process.env.DATABASE_URL ||
|
||||||
|
'postgresql://breakpilot:breakpilot123@bp-core-postgres:5432/breakpilot_db',
|
||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user