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:
Andymick
2026-07-18 20:47:14 +01:00
parent 4ec39d8618
commit 3029efcb9a
+2 -1
View File
@@ -1,6 +1,7 @@
'use server'; 'use server';
import { redirect, revalidatePath } from 'next/navigation'; import { redirect } from 'next/navigation';
import { revalidatePath } from 'next/cache';
import { prisma } from '@/lib/prisma'; import { prisma } from '@/lib/prisma';
const AUTO_ARCHIVE_DAYS = 30; const AUTO_ARCHIVE_DAYS = 30;