feat: implement dynamic hero image and header updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user