Add server config, move plugin file
This commit is contained in:
6
server/config.js
Normal file
6
server/config.js
Normal 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}`;
|
||||
Reference in New Issue
Block a user