mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
Update revalidate path
This commit is contained in:
parent
7ebcc1f24b
commit
67bd84ebf9
@ -31,9 +31,9 @@ export async function POST(request: NextRequest) {
|
||||
let pathToRevalidate = "";
|
||||
|
||||
if (type === "home") {
|
||||
pathToRevalidate = `/${locale}`
|
||||
pathToRevalidate = `${locale}`
|
||||
} else {
|
||||
pathToRevalidate = `/${locale}${slug}`
|
||||
pathToRevalidate = `${locale}${slug}`
|
||||
}
|
||||
|
||||
revalidatePath(pathToRevalidate);
|
||||
|
@ -48,7 +48,7 @@ export default function LocaleSwitcher({ currentLocale, localeData }: LocaleSwit
|
||||
<DropdownMenuTrigger asChild>
|
||||
<button
|
||||
className={
|
||||
'flex shrink-0 items-center justify-center space-x-1 rounded bg-app p-2 text-xs font-bold uppercase outline-none ring-2 ring-transparent transition duration-200 hover:ring-ui-border focus:ring-ui-border'
|
||||
'flex shrink-0 items-center justify-center space-x-1 rounded bg-app p-2 text-xs font-semibold uppercase outline-none ring-2 ring-transparent transition duration-200 hover:ring-ui-border focus:ring-ui-border'
|
||||
}
|
||||
aria-label="Language selector"
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user