Created
February 22, 2017 03:24
-
-
Save aloerina01/f6a30b740158eb67e976176e916f71e5 to your computer and use it in GitHub Desktop.
NODE_ENVを見て読み込むファイルを切り替える方法
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
const config = require('./_' + process.env.NODE_ENV); | |
export default class Environment { | |
static get API_ORIGIN() { | |
return config.API_ORIGIN; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment