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

feat:(gatsby-cli) - support REACT_PROFILE env var value to set profile cli argument #37754

Merged
merged 1 commit into from Mar 20, 2023

Conversation

aghreed
Copy link
Contributor

@aghreed aghreed commented Mar 17, 2023

Description

It currently does not look like there's a way to enable React profiling other than passing the cli argument --profile. This PR adds support for a REACT_PROFILE env var to set that flag in situations where the flag cannot be passed, such as with builds on Gatsby Cloud.

Documentation

Before merging and releasing this change, I would want to update documentation in two places:

Tests

I need to determine how to test this. I don't see any relevant unit tests. And I'm not sure how to go about testing this change absent of using patch-package / locally adjusting gatsby in my node_modules for a site.

Related Issues

N/A

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 17, 2023
@pieh pieh added topic: cli Related to the Gatsby CLI and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cli Related to the Gatsby CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants