Skip to content

Commit e05b058

Browse files
authored
Changed main entry when in development (#3601)
1 parent d76d00b commit e05b058

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docuilib/docusaurus.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const {themes} = require('prism-react-renderer');
22
const lightCodeTheme = themes.github;
33
const darkCodeTheme = themes.dracula;
4+
const isDev = process.env.NODE_ENV === 'development';
45

56
// With JSDoc @type annotations, IDEs can provide config autocompletion
67
/** @type {import('@docusaurus/types').DocusaurusConfig} */
@@ -17,7 +18,7 @@ const darkCodeTheme = themes.dracula;
1718
projectName: 'react-native-ui-lib', // Usually your repo name.
1819
trailingSlash: false,
1920
customFields: {
20-
docsMainEntry: 'getting-started/setup',
21+
docsMainEntry: `${isDev ? 'next/' : ''}getting-started/setup`,
2122
expoSnackLink: 'https://snack.expo.io/@ethanshar/rnuilib_snack',
2223
stars: '4.7'
2324
},

0 commit comments

Comments
 (0)