mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 10:12:09 +01:00
- Add package.json with dependencies and scripts for Next.js and Prisma - Implement API routes for session management, user authentication, and company configuration - Create database schema for Company, User, and Session models in Prisma - Set up authentication with NextAuth and JWT - Add password reset functionality and user registration endpoint - Configure Tailwind CSS and PostCSS for styling - Implement metrics and dashboard settings API endpoints
5 lines
227 B
TypeScript
5 lines
227 B
TypeScript
export async function sendEmail(to: string, subject: string, text: string): Promise<void> {
|
|
// For demo: log to console. Use nodemailer/sendgrid/whatever in prod.
|
|
console.log(`[Email to ${to}]: ${subject}\n${text}`);
|
|
}
|