mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-24 23:34:28 +08:00
configurable outgoing mailbox (#149)
* configurable outgoing mailbox * set the outgoing mail `noreply@sqlchat.ai` as the default if not specified anything
This commit is contained in:
2
process.d.ts
vendored
2
process.d.ts
vendored
@ -33,7 +33,9 @@ declare namespace NodeJS {
|
||||
GOOGLE_CLIENT_SECRET: string;
|
||||
// Optional. NextAuth.js email server.
|
||||
// This can't be tested locally. Must be deployed to the web to send mail.
|
||||
// https://next-auth.js.org/providers/email
|
||||
EMAIL_SERVER: string;
|
||||
EMAIL_FROM: string;
|
||||
// Optional. Stripe publishable key.
|
||||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: string;
|
||||
// Optional. Stripe API key.
|
||||
|
@ -18,7 +18,7 @@ export const authOptions: NextAuthOptions = {
|
||||
? [
|
||||
EmailProvider({
|
||||
server: process.env.EMAIL_SERVER,
|
||||
from: "noreply@sqlchat.ai",
|
||||
from: process.env.EMAIL_FROM || "noreply@sqlchat.ai",
|
||||
// maxAge: 24 * 60 * 60, // How long email links are valid for (default 24h)
|
||||
}),
|
||||
GoogleProvider({
|
||||
|
Reference in New Issue
Block a user