mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
Update revalidate paths again
This commit is contained in:
parent
d51c1076ee
commit
7ba66b9947
@ -32,7 +32,7 @@ export async function POST(request: NextRequest) {
|
||||
if (type === 'home') {
|
||||
pathToRevalidate = slug;
|
||||
} else {
|
||||
pathToRevalidate = '/' + slug;
|
||||
pathToRevalidate = slug;
|
||||
}
|
||||
|
||||
revalidatePath(pathToRevalidate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user