From 3b419fa99b54c3edac62c08fcc3059fc08d59446 Mon Sep 17 00:00:00 2001 From: julius Date: Sun, 26 Jan 2025 16:20:27 +0100 Subject: [PATCH] export baseUrl --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index d615cd8..8330e14 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,4 +1,4 @@ -const baseUrl = import.meta.env.VITE_BASE_URL as string; +export const baseUrl = import.meta.env.VITE_BASE_URL as string; export default async function api(path: string, data: any): Promise { const request = new Request(`${baseUrl}${path}/`, { method: "POST",