mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
Links and data fetching for dynamic routes
This commit is contained in:
parent
ce9c62084e
commit
accfb6c38c
@ -81,7 +81,7 @@ export default function ProductView({ product, relatedProducts }: ProductViewPro
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{relatedProducts.length > 0 && (
|
{relatedProducts && relatedProducts.length > 0 && (
|
||||||
<Suspense>
|
<Suspense>
|
||||||
<section className="my-16 flex flex-col lg:my-24">
|
<section className="my-16 flex flex-col lg:my-24">
|
||||||
<Text className="px-4 lg:px-8 2xl:px-16" variant="sectionHeading">
|
<Text className="px-4 lg:px-8 2xl:px-16" variant="sectionHeading">
|
||||||
|
@ -6,6 +6,7 @@ export default createMiddleware({
|
|||||||
|
|
||||||
// If this locale is matched, pathnames work without a prefix (e.g. `/about`)
|
// If this locale is matched, pathnames work without a prefix (e.g. `/about`)
|
||||||
defaultLocale: 'sv',
|
defaultLocale: 'sv',
|
||||||
|
// Dismissing this during, review when going to prod.
|
||||||
localeDetection: false
|
localeDetection: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user