File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 205205 "menu-appflow-cookbook-intro" : " Overview" ,
206206 "menu-appflow-cookbook-private_git" : " Using Private GIT repositories" ,
207207 "menu-appflow-cookbook-private_npm_modules" : " Using Private NPM modules" ,
208+ "menu-appflow-cookbook-switch_node_version" : " Use different Node in builds" ,
208209
209210 "menu-appflow-devapp" : " DevApp: Local Development" ,
210211
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ const items = {
4848 'menu-appflow-cookbook' : {
4949 'menu-appflow-cookbook-intro' : '/docs/appflow/cookbook/intro' ,
5050 'menu-appflow-cookbook-private_git' : '/docs/appflow/cookbook/private_git' ,
51- 'menu-appflow-cookbook-private_npm_modules' : '/docs/appflow/cookbook/private_npm_modules'
51+ 'menu-appflow-cookbook-private_npm_modules' : '/docs/appflow/cookbook/private_npm_modules' ,
52+ 'menu-appflow-cookbook-switch_node_version' : '/docs/appflow/cookbook/switch_node_version'
5253 } ,
5354 'menu-appflow-devapp' : '/docs/appflow/devapp'
5455} ;
Original file line number Diff line number Diff line change @@ -14,3 +14,5 @@ Learn how to access private Git repos used in npm dependencies.
1414### [ Using Private NPM Modules] ( /docs/appflow/cookbook/private_npm )
1515Learn how to access private NPM modules used in dependencies.
1616
17+ ### [ Switching Node Version] ( /docs/appflow/cookbook/switch_node_version )
18+ Learn how to use a different Node in builds.
Original file line number Diff line number Diff line change 11---
22previousText : ' Using private GIT repositories'
33previousUrl : ' /docs/appflow/cookbook/private_git'
4- nextText : ' DevApp: Local Development '
5- nextUrl : ' /docs/appflow/devapp '
4+ nextText : ' Use different Node in builds '
5+ nextUrl : ' /docs/appflow/cookbook/switch_node_version '
66---
77
88# Using private NPM modules
Original file line number Diff line number Diff line change 1+ ---
2+ previousText : ' Using private NPM moduless'
3+ previousUrl : ' /docs/appflow/cookbook/private_npm_modules'
4+ nextText : ' DevApp: Local Development'
5+ nextUrl : ' /docs/appflow/devapp'
6+ ---
7+
8+ # Use different Node in builds
9+
10+ It is possible to use a different Node version other than the default one (currently Node 10) in a build.
11+
12+
13+ To switch Node version simply add a variable called ` OVERRIDE_NODE_VERSION ` inside an environment and use
14+ such environment in a build.
15+
16+ ![ Use different Node] ( /docs/assets/img/appflow/cookbook/switch-node-version.png )
17+
18+ #### Notes
19+
20+ The environment variable ` OVERRIDE_NODE_VERSION ` can only be set
21+ to an integer representing the major version: ` 8 ` , ` 10 ` and ` 12 ` are currently allowed.
22+
23+ Even if ` 12.13.0 ` is a valid version, it is not a valid input; ` 13 ` is not currently available.
24+
25+ If ` OVERRIDE_NODE_VERSION ` is set to a version that is not a good
26+ input or that is not available, the Node version will be defaulted to ` 10 `
You can’t perform that action at this time.
0 commit comments