improve path handling and add flags section to config

This commit is contained in:
Milo Schwartz 2024-10-25 00:05:43 -04:00
parent ce19cc4ba4
commit 50e1a7abe1
No known key found for this signature in database
6 changed files with 42 additions and 25 deletions

View file

@ -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",