bump next-intl to RSC support

This commit is contained in:
Sol Irvine
2023-11-13 14:30:39 +09:00
parent ecf1205825
commit 7fa6ffbe2a
23 changed files with 102 additions and 24 deletions

View File

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