voice-diagram-comment/src/lib/db.ts
snc 6cba1f1351 initial commit
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 21:22:21 +09:00

8 lines
194 B
TypeScript

import { neon } from '@neondatabase/serverless';
export function getDb() {
const url = process.env.DATABASE_URL;
if (!url) throw new Error('DATABASE_URL is not set');
return neon(url);
}