mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-06 01:54:39 +00:00
use config file instead of env
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import axios from "axios";
|
||||
|
||||
// const baseURL = `${window.location.protocol}//${window.location.host}/api/v1`;
|
||||
|
||||
|
||||
export const api = axios.create({
|
||||
baseURL: "http://testing123.io:8081/api/v1",
|
||||
baseURL: process.env.NEXT_PUBLIC_EXTERNAL_API_BASE_URL,
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
@@ -12,7 +9,7 @@ export const api = axios.create({
|
||||
});
|
||||
|
||||
export const internal = axios.create({
|
||||
baseURL: "http://pangolin:3000/api/v1",
|
||||
baseURL: process.env.NEXT_PUBLIC_INTERNAL_API_BASE_URL,
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user