From 9eeffc62566057f51db999668cd9845f842bdea7 Mon Sep 17 00:00:00 2001 From: Ariel Weinberger Date: Fri, 18 Jul 2025 14:26:23 -0500 Subject: [PATCH] fixes? --- .env.example | 5 +---- ai-service/.env.example | 5 ++++- ai-service/src/lib/synapse-http-client.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 4bfe125d9..8c4ee6129 100644 --- a/.env.example +++ b/.env.example @@ -4,7 +4,4 @@ PUBLIC_APPWRITE_MULTI_REGION=false PUBLIC_APPWRITE_ENDPOINT=http://localhost/v1 PUBLIC_STRIPE_KEY= PUBLIC_GROWTH_ENDPOINT= -PUBLIC_AI_SERVICE_BASE_URL=http://localhost:8889 -WORKSPACE_URL_PROTOCOL=http -WORKSPACE_URL_DOMAIN=functions.localhost -WORKSPACE_URL_PORT=4002 \ No newline at end of file +PUBLIC_AI_SERVICE_BASE_URL=http://localhost:8889 \ No newline at end of file diff --git a/ai-service/.env.example b/ai-service/.env.example index c198a0747..74c41a135 100644 --- a/ai-service/.env.example +++ b/ai-service/.env.example @@ -1,2 +1,5 @@ ANTHROPIC_API_KEY= -APPWRITE_ENDPOINT=http://localhost/v1 \ No newline at end of file +APPWRITE_ENDPOINT=http://localhost/v1 +WORKSPACE_URL_PROTOCOL=http +WORKSPACE_URL_DOMAIN=functions.localhost +WORKSPACE_URL_PORT=4002 \ No newline at end of file diff --git a/ai-service/src/lib/synapse-http-client.ts b/ai-service/src/lib/synapse-http-client.ts index 993e82377..18f42a402 100644 --- a/ai-service/src/lib/synapse-http-client.ts +++ b/ai-service/src/lib/synapse-http-client.ts @@ -239,7 +239,7 @@ export class SynapseHTTPClient { method: 'POST', headers: { 'Content-Type': 'application/json', - 'X-Host': `${this.artifactId}.functions.localhost` + 'X-Host': `${this.artifactId}.${process.env.WORKSPACE_URL_DOMAIN}` }, body: JSON.stringify(body) });