-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Only server-side render the popular languages #17249
[docs] Only server-side render the popular languages #17249
Conversation
Details of bundle changes.Comparing: 98f2c7c...3d5e1cc
|
588b023
to
0f9017c
Compare
0f9017c
to
125686e
Compare
docs/next.config.js
Outdated
traverse(pages, userLanguage); | ||
}); | ||
} | ||
// if (process.env.PULL_REQUEST === 'true') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To uncomment before merging.
const { t } = useSelector(state => ({ | ||
t: state.options.t, | ||
})); | ||
const t = useSelector(state => state.options.t); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for self, it's what happens when you work on something without internet to verify it's optimal.
useSelector() uses strict === reference equality checks by default, not shallow equality (see the following section for more details).
} | ||
} | ||
|
||
function AppWrapper(props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inline the file directly into _app.js. As long as the file is less than 1k LOCs (~400 here), we should be fine.
125686e
to
72d5596
Compare
Interesting, Next.js was using, for the static export, 7 threads and 10 of concurrency for a single CPU. This wasn't working well (5 pages/s), reducing to 3 threads and 5 of concurrency helps (10 pages/s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not going to pretend to understand most of that, but it builds, and the non-SSR languages are working, so: 👌
Netlify deploy is broken, the build is too slow. We have 15 minutes and 1 CPU to do all the work.
Maybe we should build on CircleCI and have Netlify deploy the output, to consider in the future 😁.
We can deploy the documentation for v4.4.0 live once this is merged.