Новые файлы для настройки почты

This commit is contained in:
Web-serfer 2026-04-22 22:11:45 +05:00
parent 27c4d64d73
commit e695b9bc01
4 changed files with 97 additions and 9 deletions

View file

@ -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,