mirror of
https://github.com/vercel/commerce.git
synced 2025-05-20 00:16:59 +00:00
Update revalidate paths again
This commit is contained in:
parent
d33b652791
commit
804d6f8212
@ -33,7 +33,7 @@ export async function POST(request: NextRequest) {
|
||||
if (type === "home") {
|
||||
pathToRevalidate = `${slug}`
|
||||
} else {
|
||||
pathToRevalidate = `${locale}${slug}`
|
||||
pathToRevalidate = `/${locale}${slug}`
|
||||
}
|
||||
|
||||
revalidatePath(pathToRevalidate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user