Links and data fetching for dynamic routes

This commit is contained in:
Henrik Larsson 2023-08-13 22:17:44 +02:00
parent ce9c62084e
commit accfb6c38c
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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
}); });