Skip to content

Commit 4e4f9ac

Browse files
author
Robert Jackson
authored
Merge pull request #800 from zonkyio/build-sandbox-globals-readme
Update README to match buildSandboxGlobals API
2 parents 9ac7af6 + ee562ec commit 4e4f9ac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ module.exports = function(environment) {
6363
let myGlobal = environment === 'production' ? process.env.MY_GLOBAL : 'testing';
6464

6565
return {
66-
sandboxGlobals: {
67-
myGlobal;
66+
buildSandboxGlobals(defaultGlobals) {
67+
return Object.assign({}, defaultGlobals, {
68+
myGlobal,
69+
});
6870
}
6971
};
7072
}

0 commit comments

Comments
 (0)