diff --git a/frontend/landing/src/api/gql.ts b/frontend/landing/src/api/gql.ts index 7c133dd33..7d4fc8f4b 100644 --- a/frontend/landing/src/api/gql.ts +++ b/frontend/landing/src/api/gql.ts @@ -4,4 +4,4 @@ const host = config.SITE_BASE_URL ?? 'localhost:3005' const isDev = config.NODE_ENV === 'development' const apiAddr = isDev ? `${host}/api` : 'api-gql:3009' -export const gqlUrl = `http://${apiAddr}/query` +export const gqlUrl = process.env.API_GQL_ADDR || `http://${apiAddr}/query` diff --git a/frontend/landing/src/api/twirp.ts b/frontend/landing/src/api/twirp.ts index b8ae64525..54774003c 100644 --- a/frontend/landing/src/api/twirp.ts +++ b/frontend/landing/src/api/twirp.ts @@ -6,11 +6,11 @@ const host = config.SITE_BASE_URL ?? 'localhost:3005' const isDev = config.NODE_ENV === 'development' const apiAddr = isDev ? `${host}/api-old` : 'api:3002' -const baseUrl = `http://${apiAddr}/v1` +const baseUrl = process.env.API_ADDR || `http://${apiAddr}/v1` const transport = new TwirpFetchTransport({ baseUrl, - sendJson: isDev + sendJson: isDev, }) export const protectedClient = new ProtectedClient(transport)