MCPcopy
hub / github.com/dabbott/react-native-express / withGuidebooks

Function withGuidebooks

next.config.js:8–17  ·  view source on GitHub ↗
(nextConfig)

Source from the content-addressed store, hash-verified

6const { locales, defaultLocale } = pkg.guidebook.i18n
7
8const withGuidebooks = (nextConfig) =>
9 locales.reduce(
10 (nextConfig, locale) =>
11 generateGuidebook({
12 guidebookDirectory:
13 locale === defaultLocale ? './pages' : `./pages/${locale}`,
14 guidebookModulePath: `./guidebook-${locale}.js`,
15 })(nextConfig),
16 nextConfig
17 )
18
19const withMDX = require('next-mdx-frontmatter')({
20 extension: /\.mdx?$/,

Callers 1

next.config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected