Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Allow local docs next.js settings #12227

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Feb 27, 2024

Allows for local next.js settings.

I use it to disable react strict mode.

@romgrk romgrk added the core Infrastructure work going on behind the scenes label Feb 27, 2024
@mui-bot
Copy link

mui-bot commented Feb 27, 2024

Deploy preview: https://deploy-preview-12227--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against a87b454

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it just to disable strict mode? From an infra perspective my preference would rather be an MUI_DISABLE_STRICT_MODE environment variable + .env file. Leveraging the native mechanism for local overrides.
The mechanism in this PR doesn't allow for any other override than top level properties, so it's of limited use anyway.

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not going to block this, but I think it would yield a more maintainable implementation with env vars

@romgrk romgrk merged commit 10d2b01 into mui:next Feb 27, 2024
17 checks passed
@romgrk romgrk deleted the core-docs-local-config branch February 27, 2024 15:08
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants