From 0cc70253020c69d995cf85759f122190362277de Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 24 Nov 2020 23:10:32 +0100 Subject: [PATCH] start simpler --- docs/next.config.js | 2 +- docs/src/pages.js | 2 +- packages/storybook/.storybook/main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/next.config.js b/docs/next.config.js index c5487e46829f3..4bd8b3689c5a1 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -38,7 +38,7 @@ module.exports = { REACT_MODE: JSON.stringify(reactMode), ENABLE_EXPERIMENTAL: JSON.stringify( // Set by Netlify - process.env.CONTEXT === 'production' ? 'false' : 'true', + process.env.PULL_REQUEST === 'false' ? 'false' : 'true', ), SOURCE_CODE_ROOT_URL: JSON.stringify( 'https://github.com/mui-org/material-ui-x/blob/master', diff --git a/docs/src/pages.js b/docs/src/pages.js index 2889eeded3c86..29462f4ce26bc 100644 --- a/docs/src/pages.js +++ b/docs/src/pages.js @@ -122,7 +122,7 @@ const pages = [ pathname: '/components', subheader: '/components/data-grid', children: - process.env.CONTEXT === 'production' + process.env.PULL_REQUEST === 'false' ? [ { pathname: '/components/data-grid', diff --git a/packages/storybook/.storybook/main.js b/packages/storybook/.storybook/main.js index 1ceb3d55c6136..6090e7c077480 100644 --- a/packages/storybook/.storybook/main.js +++ b/packages/storybook/.storybook/main.js @@ -77,7 +77,7 @@ module.exports = { 'process.env': { ENABLE_EXPERIMENTAL: JSON.stringify( // Set by Netlify - process.env.CONTEXT === 'production' ? 'false' : 'true', + process.env.PULL_REQUEST === 'false' ? 'false' : 'true', ), }, }),