Skip to content

Commit

Permalink
assign configs not defined in runtime config
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Jul 21, 2021
1 parent ddb6663 commit 0d30136
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const getRuntimeConfig = (config: ${clientConfigName}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
...config,
runtime: "browser",
${customizations}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const getRuntimeConfig = (config: ${clientConfigName}) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
...config,
runtime: "react-native",
${customizations}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const getRuntimeConfig = (config: ${clientConfigName}) => {
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
...config,
runtime: "node",
${customizations}
};
Expand Down

0 comments on commit 0d30136

Please sign in to comment.