This commit is contained in:
Blake Ridgway
2025-11-29 13:27:08 -06:00
parent 579657da1f
commit 39be2eaaa3

View File

@@ -1,7 +1,7 @@
import axios from 'axios' import axios from 'axios'
const API_BASE_URL = process.env.NODE_ENV === 'production' const API_BASE_URL = process.env.NODE_ENV === 'production'
? 'http://127.0.0.1:5010' ? 'https://dev-api.rideaware.org'
: 'http://127.0.0.1:5000' : 'http://127.0.0.1:5000'
const api = axios.create({ const api = axios.create({
@@ -39,7 +39,7 @@ api.interceptors.response.use(
} }
const refreshUrl = process.env.NODE_ENV === 'production' const refreshUrl = process.env.NODE_ENV === 'production'
? 'http://127.0.0.1:5010/api/refresh-token' ? 'https://dev-api.rideaware.org/api/refresh-token'
: 'http://127.0.0.1:5000/api/refresh-token' : 'http://127.0.0.1:5000/api/refresh-token'
const { data } = await axios.post(refreshUrl, { const { data } = await axios.post(refreshUrl, {