Skip to content

Commit

Permalink
Update dbConfig.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
arkapg211002 authored Jun 29, 2024
1 parent 7bdb54b commit bb1ba65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/dbConfig.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { neon } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-http';
import * as schema from './schema'
const sql = neon('postgresql://neondb_owner:G0oSDfv2mVTB@ep-dark-firefly-a1q3jw5f.ap-southeast-1.aws.neon.tech/Spendly?sslmode=require');
export const db = drizzle(sql, { schema });
const sql = neon(process.env.NEXT_PUBLIC_DRIZZLE_DB_URL!);
export const db = drizzle(sql, { schema });

0 comments on commit bb1ba65

Please sign in to comment.