From 04ec48e110a2df98850de8217d819c282ed964aa Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 29 Nov 2020 17:09:39 -0600 Subject: [PATCH] heroku quick fix --- client/src/api/api.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 });