From caa908326f19da7d2c292e61cb9fc29cdc21248d Mon Sep 17 00:00:00 2001 From: romeobravo Date: Tue, 19 Sep 2023 03:41:18 +0200 Subject: [PATCH 1/2] chore: Fix heading hierarchy in revalidateTag documentation (#55470) ### What? Fix heading hierarchy in revalidateTag documentation (https://nextjs.org/docs/app/api-reference/functions/revalidateTag) ### Why? Makes it consistent with https://nextjs.org/docs/app/api-reference/functions/revalidatePath --- docs/02-app/02-api-reference/04-functions/revalidateTag.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/02-api-reference/04-functions/revalidateTag.mdx b/docs/02-app/02-api-reference/04-functions/revalidateTag.mdx index dd8680f59df3e..364c8bc47eb8b 100644 --- a/docs/02-app/02-api-reference/04-functions/revalidateTag.mdx +++ b/docs/02-app/02-api-reference/04-functions/revalidateTag.mdx @@ -30,7 +30,7 @@ fetch(url, { next: { tags: [...] } }); ## Examples -## Server Action +### Server Action ```ts filename="app/actions.ts" switcher 'use server' From f630cb8e56dab3f7a7798e80076cf9a752e6f31b Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Tue, 19 Sep 2023 12:31:38 +0200 Subject: [PATCH 2/2] Add `mui-core` to the default `optimizePackageImports` list (#55554) Feedback from https://github.com/vercel/next.js/issues/48748#issuecomment-1714292279. As per my testing, an App Router route of ```tsx 'use client' import { Button } from 'mui-core' export default function Page() { return } ``` was improved from `2.4s (1221 modules)` to `1458ms (649 modules)` for the local dev. --- packages/next/src/server/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index f1337de506214..a3462031ce225 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -724,6 +724,7 @@ function assignDefaults( 'react-use', '@material-ui/icons', '@tabler/icons-react', + 'mui-core', ]), ]