Skip to content

Commit

Permalink
feat(app-config): add envs config
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodigioacchino committed Dec 24, 2020
1 parent 7fc77e6 commit b159b63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/game-app/src/config/config-retriever.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {Config} from './config';

const windowEnv = (window as any)._env_ || {};

const config: Config = {...windowEnv, ...process.env};

export default config;
Empty file.
3 changes: 3 additions & 0 deletions packages/game-app/src/config/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import CONFIG from './config-retriever';
export default CONFIG;

0 comments on commit b159b63

Please sign in to comment.