sports-matcher/client/config.js

11 lines
272 B
JavaScript
Raw Normal View History

2022-03-27 23:30:18 +00:00
const prod = {
env: "production",
api_host: ""
};
const dev = {
env: "development",
api_host: "http://localhost:5000", // web server localhost port
};
// export the appropriate environment
export default process.env.NODE_ENV === "production" ? prod : dev;