File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const runMigrate = async () => {
18
18
console . log ( '⏳ Running migrations...' ) ;
19
19
20
20
const start = Date . now ( ) ;
21
- await migrate ( db , { migrationsFolder : './lib/drizzle ' } ) ;
21
+ await migrate ( db , { migrationsFolder : './lib/db/migrations ' } ) ;
22
22
const end = Date . now ( ) ;
23
23
24
24
console . log ( '✅ Migrations completed in' , end - start , 'ms' ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {
22
22
// https://authjs.dev/reference/adapter/drizzle
23
23
24
24
// biome-ignore lint: Forbidden non-null assertion.
25
- const client = postgres ( ` ${ process . env . POSTGRES_URL ! } ?sslmode=require` ) ;
25
+ const client = postgres ( process . env . POSTGRES_URL ! ) ;
26
26
const db = drizzle ( client ) ;
27
27
28
28
export async function getUser ( email : string ) : Promise < Array < User > > {
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"scripts" : {
6
6
"dev" : " next dev --turbo" ,
7
- "build" : " next build" ,
7
+ "build" : " tsx lib/db/migrate && next build" ,
8
8
"start" : " next start" ,
9
9
"lint" : " next lint && biome lint --write --unsafe" ,
10
10
"lint:fix" : " next lint --fix && biome lint --write --unsafe" ,
You can’t perform that action at this time.
0 commit comments