PunimTag Web Application - Major Feature Release #1

Open
tanyar09 wants to merge 106 commits from dev into master
3 changed files with 9 additions and 3 deletions
Showing only changes of commit a639189c23 - Show all commits

View File

@ -1,6 +1,5 @@
import { NextRequest, NextResponse } from 'next/server';
import { prismaAuth } from '@/lib/db';
import { generatePasswordResetToken, sendPasswordResetEmail } from '@/lib/email';
import { isValidEmail } from '@/lib/utils';
// Force dynamic rendering to prevent Resend initialization during build
@ -8,6 +7,9 @@ export const dynamic = 'force-dynamic';
export async function POST(request: NextRequest) {
try {
// Dynamically import email functions to avoid Resend initialization during build
const { generatePasswordResetToken, sendPasswordResetEmail } = await import('@/lib/email');
const body = await request.json();
const { email } = body;

View File

@ -1,7 +1,6 @@
import { NextRequest, NextResponse } from 'next/server';
import { prismaAuth } from '@/lib/db';
import bcrypt from 'bcryptjs';
import { generateEmailConfirmationToken, sendEmailConfirmation } from '@/lib/email';
import { isValidEmail } from '@/lib/utils';
// Force dynamic rendering to prevent Resend initialization during build
@ -9,6 +8,9 @@ export const dynamic = 'force-dynamic';
export async function POST(request: NextRequest) {
try {
// Dynamically import email functions to avoid Resend initialization during build
const { generateEmailConfirmationToken, sendEmailConfirmation } = await import('@/lib/email');
const body = await request.json();
const { email, password, name } = body;

View File

@ -1,12 +1,14 @@
import { NextRequest, NextResponse } from 'next/server';
import { prismaAuth } from '@/lib/db';
import { generateEmailConfirmationToken, sendEmailConfirmationResend } from '@/lib/email';
// Force dynamic rendering to prevent Resend initialization during build
export const dynamic = 'force-dynamic';
export async function POST(request: NextRequest) {
try {
// Dynamically import email functions to avoid Resend initialization during build
const { generateEmailConfirmationToken, sendEmailConfirmationResend } = await import('@/lib/email');
const body = await request.json();
const { email } = body;