diff --git a/netlify.toml b/netlify.toml index 2dd3da6d40e..450489e1923 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,10 +1,13 @@ [build] base = "" publish = "website/build" - command = "export NODE_OPTIONS=--max_old_space_size=4096 && yarn && cd website && sed -i -e \"s|const baseUrl .*|const baseUrl = '/'|g\" docusaurus.config.js && yarn build" + command = "yarn && cd website && yarn build" [context.production.environment] NODE_VERSION = "14.16.0" + NODE_OPTIONS = "--max_old_space_size=4096" [context.deploy-preview.environment] NODE_VERSION = "14.16.0" + NODE_OPTIONS = "--max_old_space_size=4096" + PREVIEW_DEPLOY = "true" diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 50f0bbbe9dc..6955fae79f4 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -40,6 +40,10 @@ module.exports = { sidebarPath: require.resolve('./sidebars.json'), remarkPlugins: [require('@react-native-website/remark-snackplayer')], editCurrentVersion: true, + onlyIncludeVersions: + process.env.PREVIEW_DEPLOY === 'true' + ? ['current', '0.64', '0.63'] + : undefined, }, blog: { path: 'blog',