refactor: sdk init (#9563)

This commit is contained in:
Jason Rasmussen 2024-05-17 16:48:29 -04:00 committed by GitHub
parent 975f2351ec
commit 136bb69bd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 40 additions and 19 deletions

View file

@ -5,8 +5,8 @@ import {
AssetJobName,
JobName,
ThumbnailFormat,
defaults,
finishOAuth,
getBaseUrl,
linkOAuthAccount,
startOAuth,
unlinkOAuthAccount,
@ -155,7 +155,7 @@ const createUrl = (path: string, parameters?: Record<string, unknown>) => {
const url = new URL(path, 'https://example.com');
url.search = searchParameters.toString();
return defaults.baseUrl + url.pathname + url.search + url.hash;
return getBaseUrl() + url.pathname + url.search + url.hash;
};
export const getAssetFileUrl = (...[assetId, isWeb, isThumb]: [string, boolean, boolean]) => {