feat: implement dynamic hero image and header updates

This commit is contained in:
mstfyldz
2026-06-05 23:54:38 +03:00
parent 744283f167
commit 0c510c95b5
3 changed files with 12 additions and 11 deletions
+2
View File
@@ -3,6 +3,7 @@
import { prisma } from '@/lib/db';
import { createSession, deleteSession } from '@/lib/auth';
import bcrypt from 'bcryptjs';
import { revalidatePath } from 'next/cache';
// Auth Actions
export async function login(formData: FormData) {
@@ -75,6 +76,7 @@ export async function updateHeroMedia(url: string, type: string) {
await prisma.heroMedia.create({
data: { url, type }
});
revalidatePath('/', 'layout');
}
// Site Settings Actions