signoz/frontend/src/api/tracesAPI.js

13 lines
472 B
JavaScript
Raw Normal View History

2021-01-18 02:18:49 +05:30
import axios from "axios";
import { ENVIRONMENT } from "Src/constants/env";
import { Token } from "../utils/token";
2021-01-03 18:15:44 +05:30
//import { format } from 'path';
export default axios.create({
2021-01-18 02:18:49 +05:30
// baseURL: 'http://104.211.113.204:8080/api/v1/' //comment this line and remove this comment before pushing
// baseURL: process.env.QUERY_SERVICE_URL,
// console.log('in traces API', process.env.QUERY_SERVICE_URL)
2021-01-18 02:33:48 +05:30
// baseURL: "/api/v1/",
baseURL: `${ENVIRONMENT.baseURL}/api/v1/`,
2021-01-03 18:15:44 +05:30
});