Skip to content

Commit 57cfb84

Browse files
committed
Cleanup nextjs config
1 parent f52f8c1 commit 57cfb84

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/next.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export default withDeploymentConfig({
6969
},
7070
experimental: {
7171
esmExternals: undefined,
72-
externalDir: true,
7372
},
74-
transpilePackages: ['@mui/internal-core-docs', '@mui/base', '@mui/utils'],
73+
// This is needed because the package has next.js imports like `next/script` that need to be transpiled.
74+
transpilePackages: ['@mui/internal-core-docs'],
7575
// Avoid conflicts with the other Next.js apps hosted under https://mui.com/
7676
assetPrefix: process.env.DEPLOY_ENV === 'development' ? undefined : '/x',
7777
env: {

docs/src/modules/components/InterfaceApiPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import {
1313
LayoutStorageKeys,
1414
PropertyDefinition,
1515
DEFAULT_API_LAYOUT_STORAGE_KEYS,
16-
type ApiDisplayLayout,
1716
PropertiesSection,
1817
} from '@mui/internal-core-docs/ApiPage';
18+
import type { ApiDisplayLayout } from '@mui/internal-core-docs/ApiPage';
1919
import { AppLayoutDocs } from '@mui/internal-core-docs/AppLayout';
2020
import { SectionTitle, SectionTitleProps } from '@mui/internal-core-docs/SectionTitle';
2121
import {

0 commit comments

Comments
 (0)