Новые файлы для настройки почты
This commit is contained in:
parent
27c4d64d73
commit
e695b9bc01
4 changed files with 97 additions and 9 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import type { APIRoute } from 'astro';
|
||||
import nodemailer from 'nodemailer';
|
||||
|
||||
const POCKETBASE_URL = import.meta.env.POCKETBASE_URL || 'http://localhost:8090';
|
||||
const SMTP_HOST = import.meta.env.SMTP_HOST || 'localhost';
|
||||
const SMTP_PORT = import.meta.env.SMTP_PORT || '1025';
|
||||
const NOTIFY_EMAIL = import.meta.env.NOTIFY_EMAIL || 'info@avtourist.ru';
|
||||
const POCKETBASE_URL = import.meta.env.POCKETBASE_URL; // || 'http://localhost:8090';
|
||||
const SMTP_HOST = import.meta.env.SMTP_HOST; // || 'localhost';
|
||||
const SMTP_PORT = import.meta.env.SMTP_PORT; // || '1025';
|
||||
const NOTIFY_EMAIL = import.meta.env.NOTIFY_EMAIL; // || 'info@avtourist.ru';
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: SMTP_HOST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue