mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
Update revalidate path
This commit is contained in:
parent
5c2f3d5e3e
commit
7ebcc1f24b
@ -31,7 +31,7 @@ export async function POST(request: NextRequest) {
|
||||
let pathToRevalidate = "";
|
||||
|
||||
if (type === "home") {
|
||||
pathToRevalidate = `${slug}`
|
||||
pathToRevalidate = `/${locale}`
|
||||
} else {
|
||||
pathToRevalidate = `/${locale}${slug}`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user