Migrate to local PG & Update Solana Checkout

This commit is contained in:
2026-03-12 19:22:10 +03:00
parent e7f9325b1c
commit 321f25a15c
16 changed files with 1445 additions and 4980 deletions

10
lib/db.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Pool } from 'pg';
const pool = new Pool({
connectionString: process.env.DATABASE_URL,
});
export const db = {
query: (text: string, params?: any[]) => pool.query(text, params),
pool,
};