diff --git a/client/src/api/api.js b/client/src/api/api.js index 2367339..d1e5b64 100644 --- a/client/src/api/api.js +++ b/client/src/api/api.js @@ -5,8 +5,12 @@ If serve static dev -> host = localhost:3000 If concurrent dev -> host = localhost:5000 If production -> host = 'https://lsu-it-support-demo.herokuapp.com/' */ -const PORT = process.env.PORT || 5000; -const HOST = process.env.HOST || `localhost:${PORT}` +// const PORT = process.env.PORT || 5000; +// const HOST = process.env.HOST || `localhost:${PORT}` + +/* Heroku env vars not working :( */ +const LAZY = 'https://lsu-it-support-demo.herokuapp.com/api/' export default axios.create({ - baseURL: `http://${HOST}/api/`, + // baseURL: `http://${HOST}/api/`, + baseURL: LAZY });