Skip to content

Commit

Permalink
fix(deno-client): use proper base url
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Oct 15, 2022
1 parent eb589db commit bb1750f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deno-client/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const SHARED_FOLDER = '/shared'
export function setClient(token: string, baseUrl: string) {
OpenAPI.WITH_CREDENTIALS = true
OpenAPI.TOKEN = token
OpenAPI.BASE = baseUrl
OpenAPI.BASE = baseUrl + '/api'
}

setClient(Deno.env.get("WM_TOKEN") ?? 'no_token', Deno.env.get("BASE_INTERNAL_URL") ?? Deno.env.get("BASE_URL") ?? 'http://localhost:8000')
Expand Down

0 comments on commit bb1750f

Please sign in to comment.