mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
bump next-intl to RSC support
This commit is contained in:
@@ -4,6 +4,7 @@ import { SupportedLocale } from 'components/layout/navbar/language-control';
|
||||
import Navbar from 'components/layout/navbar';
|
||||
import { getCart, getPage, getProduct } from 'lib/shopify';
|
||||
import { Product } from 'lib/shopify/types';
|
||||
import { unstable_setRequestLocale } from 'next-intl/server';
|
||||
import { cookies } from 'next/headers';
|
||||
import { Suspense } from 'react';
|
||||
import AboutNaraiDetail from './about-narai-detail';
|
||||
@@ -19,6 +20,10 @@ export const metadata = {
|
||||
};
|
||||
|
||||
export default async function Page({ params }: { params: { locale?: SupportedLocale } }) {
|
||||
if (!!params?.locale) {
|
||||
unstable_setRequestLocale(params.locale);
|
||||
}
|
||||
|
||||
const cartId = cookies().get('cartId')?.value;
|
||||
let cart;
|
||||
|
||||
|
Reference in New Issue
Block a user