mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Updates
This commit is contained in:
@@ -59,6 +59,8 @@ export default async function LocaleLayout({ children, params: { locale } }: Loc
|
||||
<NextIntlClientProvider locale={locale} messages={messages}>
|
||||
<Header locale={locale} />
|
||||
<main className="flex-1">{children}</main>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
{/* https://github.com/vercel/next.js/issues/42292 */}
|
||||
<Footer locale={locale} />
|
||||
</NextIntlClientProvider>
|
||||
</body>
|
||||
|
@@ -83,7 +83,7 @@ draftMode().enable();
|
||||
return new Response(null, {
|
||||
status: 307,
|
||||
headers: {
|
||||
Location: `/${product.locale}/${product.slug}`,
|
||||
Location: `/${product.locale}/product/${product.slug}`,
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -92,7 +92,7 @@ draftMode().enable();
|
||||
return new Response(null, {
|
||||
status: 307,
|
||||
headers: {
|
||||
Location: `/${category.locale}/${category.slug}`,
|
||||
Location: `/${category.locale}/category/${category.slug}`,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user