diff --git a/src/api.ts b/src/api.ts index 085ad84..af18878 100644 --- a/src/api.ts +++ b/src/api.ts @@ -53,7 +53,7 @@ export async function bapsicleApiRequest( params: any ): Promise { const res = await apiRequest( - "http://webstudio-dev.ury.org.uk:13500" + endpoint, + "http://" + window.location.hostname + ":13500" + endpoint, method, params );