Add server config, move plugin file

This commit is contained in:
Michael Jackson
2018-05-17 10:10:33 -07:00
parent 041d0c407f
commit da06a5b97f
6 changed files with 29 additions and 10 deletions

6
server/config.js Normal file
View File

@ -0,0 +1,6 @@
exports.port = parseInt(process.env.PORT, 10) || 5000;
exports.origin =
process.env.NODE_ENV === "production" || process.env.NODE_ENV === "test"
? "https://unpkg.com"
: `http://localhost:${exports.port}`;