Fix: Import revalidatePath from correct module
Import revalidatePath from 'next/cache' instead of 'next/navigation'. This fixes the 'revalidatePath is not a function' error when updating order tracking information.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use server';
|
||||
|
||||
import { redirect, revalidatePath } from 'next/navigation';
|
||||
import { redirect } from 'next/navigation';
|
||||
import { revalidatePath } from 'next/cache';
|
||||
import { prisma } from '@/lib/prisma';
|
||||
|
||||
const AUTO_ARCHIVE_DAYS = 30;
|
||||
|
||||
Reference in New Issue
Block a user