Skip to content

Commit

Permalink
fix: allow passing custom INTEGRATIONOS_API_BASE_URL to authkit-node (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkr authored Aug 13, 2024
1 parent 32bd79c commit 74ef212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export const createEventLinkTokenApi = async (

const { data: linkData } = matchResultAndHandleHttpError(link, identity);

const connectionDefinitionUrl = `${process.env.API_BASE_URL}/v1/public/connection-definitions`;
const apiBaseUrl = process.env.INTEGRATIONOS_API_BASE_URL || "https://api.integrationos.com/v1";
const connectionDefinitionUrl = `${apiBaseUrl}/public/connection-definitions`;

const connectionDefinitions =
await makeHttpNetworkCall<ConnectionDefinitions>({
Expand Down
3 changes: 2 additions & 1 deletion packages/connections/src/apis/link.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const createEventLinkTokenApi = async (
{ headers }
);

const connectionDefinitionUrl = `${process.env.API_BASE_URL}/v1/public/connection-definitions`;
const apiBaseUrl = process.env.INTEGRATIONOS_API_BASE_URL || "https://api.integrationos.com/v1";
const connectionDefinitionUrl = `${apiBaseUrl}/public/connection-definitions`;

const connectionDefinitions = await axios.get<ConnectionDefinitions>(
`${connectionDefinitionUrl}?limit=100&skip=0`
Expand Down

0 comments on commit 74ef212

Please sign in to comment.