📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
using config API_URL as a fallback
Blue Mouse2cdca5dee3fa
diff --git a/src/api/index.js b/src/api/index.jsindex 20d2a4b32..e41719fc4 100644--- a/src/api/index.js+++ b/src/api/index.js@@ -6,11 +6,12 @@ import _isEmpty from 'lodash/isEmpty'import { authActions } from 'redux/actions/auth'import { getAccessToken, removeAccessToken } from 'utils/accessToken'+import config from '../config.json'const debug = Debug('swetrix:api')const api = axios.create({- baseURL: process.env.REACT_APP_API_URL,+ baseURL: process.env.REACT_APP_API_URL || config.API_URL,})api.interceptors.request.use(