From eef14ad0ee3a8251d1460a22428c2a91d933f157 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 27 Mar 2024 21:30:59 -0600 Subject: [PATCH] Use the api sub-path when desired --- frontend/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/main.ts b/frontend/src/main.ts index b6581b8..4867948 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -4,7 +4,7 @@ import axios from "axios"; import "./app.css"; export const api = axios.create({ - baseURL: import.meta.env.DEV ? `http://localhost:6969${window.location.pathname}` : import.meta.env.BASE_URL, + baseURL: import.meta.env.DEV ? `http://localhost:6969${window.location.pathname}` : import.meta.env.BASE_URL + `/api`, }); // Get all of the internationalization stuff registered and operational