mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 20:17:50 +02:00
perf(core): disable Rspack parallelCodeSplitting
temporarily (#11178)
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
This commit is contained in:
parent
dbc4ed2c15
commit
e839b67034
7 changed files with 25 additions and 5 deletions
|
@ -71,7 +71,10 @@ export const LAST_UPDATE_FALLBACK: LastUpdateData = {
|
|||
export async function getLastUpdate(
|
||||
filePath: string,
|
||||
): Promise<LastUpdateData | null> {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (
|
||||
process.env.NODE_ENV !== 'production' ||
|
||||
process.env.DOCUSAURUS_DISABLE_LAST_UPDATE === 'true'
|
||||
) {
|
||||
// Use fake data in dev/test for faster development.
|
||||
return LAST_UPDATE_FALLBACK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue