Skip to content

Commit 4f56e41

Browse files
committed
chore: simplify dev app
1 parent 2725d07 commit 4f56e41

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

apps/dev/pages/api/auth/[...nextauth].ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import { TypeORMLegacyAdapter } from "@next-auth/typeorm-legacy-adapter"
4747
const adapters = {
4848
prisma() {
4949
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
5151
return PrismaAdapter(client)
5252
},
5353
typeorm() {
@@ -127,15 +127,7 @@ if (authOptions.adapter) {
127127
authOptions.providers.unshift(
128128
// NOTE: You can start a fake e-mail server with `pnpm email`
129129
// 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" })
139131
)
140132
}
141133

0 commit comments

Comments
 (0)