mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Update revalidate paths again
This commit is contained in:
@@ -33,7 +33,7 @@ export async function POST(request: NextRequest) {
|
||||
if (type === "home") {
|
||||
pathToRevalidate = `${slug}`
|
||||
} else {
|
||||
pathToRevalidate = `${locale}${slug}`
|
||||
pathToRevalidate = `/${locale}${slug}`
|
||||
}
|
||||
|
||||
revalidatePath(pathToRevalidate);
|
||||
|
Reference in New Issue
Block a user