Skip to content

Commit

Permalink
Allow custom Node distBaseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmatravers authored Mar 31, 2022
1 parent 799badf commit 25a7100
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions datahub-web-react/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ node {
// Version of Yarn to use.
yarnVersion = '1.22.0'

// Base URL for fetching node distributions (change if you have a mirror).
distBaseUrl = 'https://nodejs.org/dist'
// Base URL for fetching node distributions (set nodeDistBaseUrl if you have a mirror).
if (project.hasProperty('nodeDistBaseUrl')) {
distBaseUrl = project.getProperty('nodeDistBaseUrl')
} else {
distBaseUrl = 'https://nodejs.org/dist'
}

// Set the work directory for unpacking node
workDir = file("${project.projectDir}/.gradle/nodejs")
Expand Down

0 comments on commit 25a7100

Please sign in to comment.