We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d76d00b commit e05b058Copy full SHA for e05b058
docuilib/docusaurus.config.js
@@ -1,6 +1,7 @@
1
const {themes} = require('prism-react-renderer');
2
const lightCodeTheme = themes.github;
3
const darkCodeTheme = themes.dracula;
4
+const isDev = process.env.NODE_ENV === 'development';
5
6
// With JSDoc @type annotations, IDEs can provide config autocompletion
7
/** @type {import('@docusaurus/types').DocusaurusConfig} */
@@ -17,7 +18,7 @@ const darkCodeTheme = themes.dracula;
17
18
projectName: 'react-native-ui-lib', // Usually your repo name.
19
trailingSlash: false,
20
customFields: {
- docsMainEntry: 'getting-started/setup',
21
+ docsMainEntry: `${isDev ? 'next/' : ''}getting-started/setup`,
22
expoSnackLink: 'https://snack.expo.io/@ethanshar/rnuilib_snack',
23
stars: '4.7'
24
},
0 commit comments