diff --git a/sdks/python/tests/test_integration.py b/sdks/python/tests/test_integration.py index 97516763..86edb7d3 100644 --- a/sdks/python/tests/test_integration.py +++ b/sdks/python/tests/test_integration.py @@ -28,8 +28,9 @@ def get_api_key() -> str: """Get or create an API key for testing.""" global _cached_api_key if _cached_api_key is None: + # Use /api/keys to go through frontend proxy (frontend at :3000 proxies /api/* to backend) response = httpx.post( - f"{_base_url}/keys", + f"{_base_url}/api/keys", json={"name": "SDK Integration Test"}, timeout=30.0, ) diff --git a/sdks/typescript/tests/integration.test.ts b/sdks/typescript/tests/integration.test.ts index 8f2903b6..745da192 100644 --- a/sdks/typescript/tests/integration.test.ts +++ b/sdks/typescript/tests/integration.test.ts @@ -20,7 +20,8 @@ const SKIP_TESTS = process.env.SKIP_SDK_INTEGRATION_TESTS === "true"; // Create API key for tests async function createApiKey(): Promise { - const response = await fetch(`${BASE_URL}/keys`, { + // Use /api/keys to go through frontend proxy (frontend at :3000 proxies /api/* to backend) + const response = await fetch(`${BASE_URL}/api/keys`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ name: "TypeScript SDK Integration Test" }),