From 9788bc512ed69ab8d81b11d3a1773dda85620864 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 24 Nov 2020 20:17:41 +0100 Subject: [PATCH] improve the env so we can test on master too --- docs/next.config.js | 2 +- packages/storybook/.storybook/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/next.config.js b/docs/next.config.js index 4bd8b3689c5a1..c5487e46829f3 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.PULL_REQUEST === 'false' ? 'false' : 'true', + process.env.CONTEXT === 'production' ? 'false' : 'true', ), SOURCE_CODE_ROOT_URL: JSON.stringify( 'https://github.com/mui-org/material-ui-x/blob/master', diff --git a/packages/storybook/.storybook/main.js b/packages/storybook/.storybook/main.js index 6090e7c077480..1ceb3d55c6136 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.PULL_REQUEST === 'false' ? 'false' : 'true', + process.env.CONTEXT === 'production' ? 'false' : 'true', ), }, }),