Created
February 22, 2017 03:10
-
-
Save aloerina01/827895f64fc549cf70fe91d3162a2d09 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