This commit is contained in:
Milo Schwartz 2024-10-26 17:01:34 -04:00
parent d78312fad8
commit 50d374d9f6
No known key found for this signature in database
8 changed files with 1735 additions and 21 deletions

View file

@ -1,7 +1,12 @@
import axios from "axios";
// let origin;
// if (typeof window !== "undefined") {
// origin = window.location.origin;
// }
export const api = axios.create({
baseURL: process.env.NEXT_PUBLIC_EXTERNAL_API_BASE_URL,
baseURL: `http://localhost:3000/api/v1`,
timeout: 10000,
headers: {
"Content-Type": "application/json",
@ -9,7 +14,7 @@ export const api = axios.create({
});
export const internal = axios.create({
baseURL: process.env.NEXT_PUBLIC_INTERNAL_API_BASE_URL,
baseURL: `http://localhost:3000/api/v1`,
timeout: 10000,
headers: {
"Content-Type": "application/json",