mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-14 06:39:08 +02:00
improve path handling and add flags section to config
This commit is contained in:
parent
ce19cc4ba4
commit
50e1a7abe1
6 changed files with 42 additions and 25 deletions
|
@ -1,7 +1,7 @@
|
|||
import axios from "axios";
|
||||
|
||||
export const api = axios.create({
|
||||
baseURL: "https://fossorial.io/api/v1",
|
||||
baseURL: process.env.NEXT_PUBLIC_EXTERNAL_API_BASE_URL,
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
@ -9,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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue