-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve environment variables in local builds (#2040)
feat: improve environment variables in local builds
- Loading branch information
Showing
90 changed files
with
6,454 additions
and
1,365 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../env/fixtures/build_readonly/netlify.toml → ...ld/tests/env/fixtures/branch/netlify.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[build.environment] | ||
NETLIFY = "test" | ||
TEST = "test" | ||
|
||
[[plugins]] | ||
package = "./plugin" |
4 changes: 2 additions & 2 deletions
4
...s/build/tests/env/fixtures/lang/plugin.js → ...build/tests/env/fixtures/branch/plugin.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
'use strict' | ||
|
||
const { | ||
env: { LANG }, | ||
env: { BRANCH }, | ||
} = require('process') | ||
|
||
module.exports = { | ||
onPreBuild() { | ||
console.log(LANG) | ||
console.log(BRANCH) | ||
}, | ||
} |
11 changes: 0 additions & 11 deletions
11
packages/build/tests/env/fixtures/build_readonly/plugin.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[build.environment] | ||
TEST = "test" | ||
|
||
[[plugins]] | ||
package = "./plugin" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build.environment] | ||
TEST = "test" | ||
|
||
[[plugins]] | ||
package = "./plugin" |
4 changes: 2 additions & 2 deletions
4
...uild/tests/env/fixtures/netlify/plugin.js → ...ld/tests/env/fixtures/deploy_id/plugin.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
'use strict' | ||
|
||
const { | ||
env: { NETLIFY }, | ||
env: { DEPLOY_ID }, | ||
} = require('process') | ||
|
||
module.exports = { | ||
onPreBuild() { | ||
console.log(NETLIFY) | ||
console.log(DEPLOY_ID) | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.