Index: app/(app)/profile/actions.ts
===================================================================
--- app/(app)/profile/actions.ts	(revision 22fc16de3b36f1ca7bd2df7d4441d55227d56f05)
+++ app/(app)/profile/actions.ts	(revision 69d38f68301f35f7f19548e514390ac30521a75e)
@@ -3,8 +3,6 @@
 import { auth } from '@/auth';
 import { redirect } from 'next/navigation';
-import postgres from 'postgres';
+import { sql } from '@/app/lib/db';
 import bcrypt from 'bcrypt';
-
-const sql = postgres(process.env.POSTGRES_URL!, { ssl: 'require' });
 
 type ActionResult = string | undefined; // string = error message, undefined = success
Index: app/(auth)/actions.ts
===================================================================
--- app/(auth)/actions.ts	(revision 22fc16de3b36f1ca7bd2df7d4441d55227d56f05)
+++ app/(auth)/actions.ts	(revision 69d38f68301f35f7f19548e514390ac30521a75e)
@@ -2,10 +2,8 @@
 
 import { z } from 'zod';
-import postgres from 'postgres';
+import { sql } from '@/app/lib/db';
 import { signIn } from '@/auth';
 import bcrypt from "bcryptjs";
 import { AuthError } from 'next-auth';
-
-const sql = postgres(process.env.POSTGRES_URL!, { ssl: 'require' });
 
 export async function authenticate(
Index: auth.ts
===================================================================
--- auth.ts	(revision 22fc16de3b36f1ca7bd2df7d4441d55227d56f05)
+++ auth.ts	(revision 69d38f68301f35f7f19548e514390ac30521a75e)
@@ -5,7 +5,5 @@
 import type { User } from '@/app/lib/definitions';
 import bcrypt from 'bcrypt';
-import postgres from 'postgres';
-
-const sql = postgres(process.env.POSTGRES_URL!, { ssl: 'require' });
+import { sql } from '@/app/lib/db';
 
 async function getUser(email: string): Promise<User | undefined> {
