[Flags] Better documentations and explanations on flags #31344
Unanswered
mwskwong
asked this question in
Ideas / Feature Requests
Replies: 1 comment 3 replies
-
👍 this would be great! Ideally this would be a MDX page that just pulls in the flags from https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/utils/flags.ts so we don't have to remember to update the docs page when a flag changes stautus or description. We haven't yet made it so people can run the docs site locally easily but you could pull the doc file and the flag file into a seperate site perhaps to write the code and one of the core team can take it to the finish line. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Gatsby v3.4 release mentioned one of the flags
PRESERVE_WEBPACK_CACHE
, which may significantly improve DX. However, there are many flags that may help but are by default disabled, and there isn't seem to be a proper page documenting the flags.The following is what I think should be included in the doc.
e.g.
DEV_SSR
Description:
EXPERIMENTAL
: Server Side Render (SSR) pages on full reloads during development. Helps you detect SSR bugs and fix them without needing to do full builds.Type:
Boolean
Default:
false
Motivation
Although the flags are experimental, it is beneficial for some of the development scenarios. Given the console mentioned the flags from time to time, I believe there should be an official page to document this information properly.
I may draft a doc and create a pull request if the core team agrees to add the page.
Beta Was this translation helpful? Give feedback.
All reactions