vault-video-processor / check_db_url.ts
dvijaykrishnan's picture
feat: Enhance social media ingestion with `safeFetchJSON` and OpenGraph fallbacks, improve quick analysis error handling, and add database utility scripts.
c70e8aa
Raw
History Blame Contribute Delete
306 Bytes
import * as dotenv from 'dotenv';
dotenv.config({ path: '.env.local' });
const url = process.env.DATABASE_URL || '';
if (url.includes('localhost') || url.includes('127.0.0.1')) {
console.log('Database URL points to localhost.');
} else {
console.log('Database URL points to a remote server.');
}