Skip to content

Commit

Permalink
Use Docusaurus beta, increase Netlify Nodejs memory (#11516)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Jun 3, 2021
1 parent b931b3c commit 155e7d0
Show file tree
Hide file tree
Showing 4 changed files with 1,636 additions and 2,365 deletions.
11 changes: 10 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
base = "/"
command = "yarn workspace jest-website netlify:ci:production"
publish = "/website/build"
environment = { NODE_VERSION = "v14.17.0" }

[build.environment]
NODE_VERSION = "v14.17.0"
NODE_OPTIONS = "--max_old_space_size=4096"

[context.production]
# Do not build the site if there's no site-related changes
Expand All @@ -17,3 +19,10 @@
[context.deploy-preview]
command = "yarn workspace jest-website netlify:ci:deployPreview"


[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = [
"website/node_modules/.cache",
]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"micromatch": "^4.0.4",
"mlh-tsd": "^0.14.1",
"mock-fs": "^4.4.1",
"netlify-plugin-cache": "^1.0.3",
"node-notifier": "^9.0.0",
"prettier": "^2.1.1",
"progress": "^2.0.0",
Expand Down
20 changes: 16 additions & 4 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,23 @@
"netlify:prepare": "yarn fetchSupporters && yarn build:js",
"netlify:crowdin": "yarn write-translations && yarn crowdin:upload && yarn crowdin:download"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": {
"@docusaurus/core": "2.0.0-alpha.c32d8bd11",
"@docusaurus/plugin-client-redirects": "2.0.0-alpha.c32d8bd11",
"@docusaurus/plugin-pwa": "2.0.0-alpha.c32d8bd11",
"@docusaurus/preset-classic": "2.0.0-alpha.c32d8bd11",
"@docusaurus/core": "^2.0.0-beta.0",
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.0",
"@docusaurus/plugin-pwa": "^2.0.0-beta.0",
"@docusaurus/preset-classic": "^2.0.0-beta.0",
"clsx": "^1.1.1",
"fs-extra": "^9.0.1",
"globby": "^11.0.1",
Expand Down
Loading

0 comments on commit 155e7d0

Please sign in to comment.