File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ import { TypeORMLegacyAdapter } from "@next-auth/typeorm-legacy-adapter"
47
47
const adapters = {
48
48
prisma ( ) {
49
49
const client = globalThis . prisma || new PrismaClient ( )
50
- if ( process . env . NODE_ENV !== "production" ) global . prisma = client
50
+ if ( process . env . NODE_ENV !== "production" ) globalThis . prisma = client
51
51
return PrismaAdapter ( client )
52
52
} ,
53
53
typeorm ( ) {
@@ -127,15 +127,7 @@ if (authOptions.adapter) {
127
127
authOptions . providers . unshift (
128
128
// NOTE: You can start a fake e-mail server with `pnpm email`
129
129
// and then go to `http://localhost:1080` in the browser
130
- Email ( {
131
- server : {
132
- host : "127.0.0.1" ,
133
- auth : null ,
134
- secure : false ,
135
- port : 1025 ,
136
- tls : { rejectUnauthorized : false } ,
137
- } ,
138
- } )
130
+ Email ( { server : "smtp://127.0.0.1:1025?tls.rejectUnauthorized=false" } )
139
131
)
140
132
}
141
133
You can’t perform that action at this time.
0 commit comments