Rewrite with React after AI got stuck in some obscure state errors on SolidJS
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
const API_BASE_URL = process.env.API_BASE_URL ?? "http://localhost:5013";
|
||||
const API_BASE_URL =
|
||||
(typeof process !== "undefined" ? process.env?.API_BASE_URL : undefined) ??
|
||||
import.meta.env.VITE_API_BASE_URL ??
|
||||
"/api";
|
||||
|
||||
export const buildApiUrl = (path: string) =>
|
||||
`${API_BASE_URL.replace(/\/+$/, "")}/${path.replace(/^\/+/, "")}`;
|
||||
|
||||
Reference in New Issue
Block a user