mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-01 16:26:39 +00:00
hardcode api url
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
export const api = axios.create({
|
export const api = axios.create({
|
||||||
baseURL: process.env.NEXT_PUBLIC_EXTERNAL_API_BASE_URL,
|
baseURL: "https://fossorial.io/api/v1",
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
@@ -9,7 +9,7 @@ export const api = axios.create({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const internal = axios.create({
|
export const internal = axios.create({
|
||||||
baseURL: process.env.NEXT_PUBLIC_INTERNAL_API_BASE_URL,
|
baseURL: "http://pangolin:3000/api/v1",
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|||||||
Reference in New Issue
Block a user