diff --git a/apps/backend/src/lib/freestyle.tsx b/apps/backend/src/lib/freestyle.tsx index d038973c8f..150d3e9b68 100644 --- a/apps/backend/src/lib/freestyle.tsx +++ b/apps/backend/src/lib/freestyle.tsx @@ -10,7 +10,7 @@ export class Freestyle { constructor(options: { apiKey?: string } = {}) { const apiKey = options.apiKey || getEnvVariable("STACK_FREESTYLE_API_KEY"); - let baseUrl = undefined; + let baseUrl = getEnvVariable("STACK_FREESTYLE_API_ENDPOINT", "") || undefined; if (apiKey === "mock_stack_freestyle_key") { if (!["development", "test"].includes(getNodeEnvironment())) { throw new StackAssertionError("Mock Freestyle key used in production; please set the STACK_FREESTYLE_API_KEY environment variable.");