Skip to content

Commit

Permalink
[docs] Enable codesandbox preview in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 21, 2020
1 parent 4447b44 commit e9f6ded
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ module.exports = {
const plugins = config.plugins.concat([
new webpack.DefinePlugin({
'process.env': {
COMMIT_REF: JSON.stringify(process.env.COMMIT_REF),
CONTEXT: JSON.stringify(process.env.CONTEXT),
ENABLE_AD: JSON.stringify(process.env.ENABLE_AD),
GITHUB_AUTH: JSON.stringify(process.env.GITHUB_AUTH),
CONTEXT: JSON.stringify(process.env.CONTEXT),
LIB_VERSION: JSON.stringify(pkg.version),
PULL_REQUEST: JSON.stringify(process.env.PULL_REQUEST === 'true'),
REACT_MODE: JSON.stringify(reactMode),
SOURCE_CODE_ROOT_URL: JSON.stringify(
'https://github.com/mui-org/material-ui-x/blob/master',
Expand Down

0 comments on commit e9f6ded

Please sign in to comment.