This commit is contained in:
Henrik Larsson
2023-08-08 17:06:04 +02:00
parent 22aab2f657
commit 047e5fe566
16 changed files with 214 additions and 169 deletions

View File

@@ -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>

View File

@@ -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}`,
},
})
}