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, 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 TermsOfUse from './terms-of-use';
@@ -23,6 +24,10 @@ export default async function TermsPage({
}: {
params: { locale?: SupportedLocale };
}) {
if (!!locale) {
unstable_setRequestLocale(locale);
}
const cartId = cookies().get('cartId')?.value;
let cart;