Skip to content
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

Use Docusaurus beta, increase Netlify Nodejs memory #11516

Merged
merged 4 commits into from
Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 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,11 @@
[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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be in website/package.json, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using netlify with monorepos is sometimes a bit confusing. I find that putting netlify.toml and netlify plugins at the root is the simplest solution that works fine when monorepo only contains a single website

I just reverted the commit you already merged/reverted btw

"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