sports-matcher/client/config.js
2022-03-27 18:30:18 -05:00

11 lines
272 B
JavaScript

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;