Skip to content

Commit

Permalink
chore: enable lmdb by default and update node for next major (#32695)
Browse files Browse the repository at this point in the history
* feat: update node to 14.15.0
* feat: add lmdb as a default
* fix patches
* change tag for publish
* force enable pqr
* update babel-preset-patch
* add patch for peerDeps to v4
* Update 1-lmdb-default.patch
* Update 1-lmdb-default.patch
  • Loading branch information
wardpeet committed Aug 27, 2021
1 parent 818d6c1 commit d87c5cb
Show file tree
Hide file tree
Showing 5 changed files with 2,493 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/gatsby/src/utils/flags.ts
Expand Up @@ -203,6 +203,10 @@ const activeFlags: Array<IFlag> = [
umbrellaIssue: `https://gatsby.dev/lmdb-feedback`,
description: `Store nodes in a persistent embedded database (vs in-memory). Lowers peak memory usage. Requires Node v14.10 or above.`,
testFitness: (): fitnessEnum => {
if (_CFLAGS_.GATSBY_MAJOR === `4`) {
return `LOCKED_IN`
}

const [major, minor] = process.versions.node.split(`.`)
return (Number(major) === 14 && Number(minor) >= 10) || Number(major) > 14
},
Expand All @@ -218,6 +222,10 @@ const activeFlags: Array<IFlag> = [
description: `Parallelize running page queries in order to better saturate all available cores. Improves time it takes to run queries during gatsby build. Requires Node v14.10 or above.`,
includedFlags: [`LMDB_STORE`],
testFitness: (): fitnessEnum => {
if (_CFLAGS_.GATSBY_MAJOR === `4`) {
return `LOCKED_IN`
}

const [major, minor] = process.versions.node.split(`.`)
return (Number(major) === 14 && Number(minor) >= 10) || Number(major) > 14
},
Expand Down

0 comments on commit d87c5cb

Please sign in to comment.