Skip to content

Commit 89fe821

Browse files
ishaan1124aayambansal
authored andcommitted
fix(managed): point default API base at app.syntheticsciences.ai
The managed/Atlas base defaulted to api.syntheticsciences.ai, which never existed as a host — so managed mode failed with 'fetch failed' / DNS errors for everyone. The real backend is app.syntheticsciences.ai (Vercel-fronted, /api/* proxied to Fly). Repoint the default plus the hardcoded github/share/OIDC refs (api.dev → app.dev for the preview path).
1 parent 70a1d57 commit 89fe821

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

backend/cli/src/cli/cmd/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export const GithubInstallCommand = cmd({
355355

356356
async function getInstallation() {
357357
return await fetch(
358-
`https://api.syntheticsciences.ai/get_github_app_installation?owner=${app.owner}&repo=${app.repo}`,
358+
`https://app.syntheticsciences.ai/get_github_app_installation?owner=${app.owner}&repo=${app.repo}`,
359359
)
360360
.then((res) => res.json())
361361
.then((data) => data.installation)
@@ -664,7 +664,7 @@ export const GithubRunCommand = cmd({
664664

665665
function normalizeOidcBaseUrl(): string {
666666
const value = process.env["OIDC_BASE_URL"]
667-
if (!value) return "https://api.syntheticsciences.ai"
667+
if (!value) return "https://app.syntheticsciences.ai"
668668
return value.replace(/\/+$/, "")
669669
}
670670

backend/cli/src/endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
/** Neutral public default. Contains no internal codename. */
20-
export const DEFAULT_MANAGED_API_BASE = "https://api.syntheticsciences.ai"
20+
export const DEFAULT_MANAGED_API_BASE = "https://app.syntheticsciences.ai"
2121

2222
function stripTrailingSlashes(url: string): string {
2323
return url.replace(/\/+$/, "")

backend/cli/src/provider/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export namespace Provider {
109109
* Blocker (c) — the inverse of requireAtlasProxyForManagedKey.
110110
*
111111
* A prior managed sync may have injected an Atlas proxy `*_BASE_URL` (e.g.
112-
* ANTHROPIC_BASE_URL → api.syntheticsciences.ai). If the resolved key is the
112+
* ANTHROPIC_BASE_URL → app.syntheticsciences.ai). If the resolved key is the
113113
* user's OWN key (BYOK), that key must NEVER be sent to the Atlas proxy — it
114114
* would leak the credential and mis-bill. Pin the base URL back to the
115115
* provider's public endpoint and drop the managed routing.

backend/cli/src/share/share.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export namespace Share {
6868

6969
export const URL =
7070
process.env["OPENSCIENCE_API"] ??
71-
(Installation.isPreview() || Installation.isLocal() ? "https://api.dev.syntheticsciences.ai" : "https://api.syntheticsciences.ai")
71+
(Installation.isPreview() || Installation.isLocal() ? "https://app.dev.syntheticsciences.ai" : "https://app.syntheticsciences.ai")
7272

7373
const disabled = true
7474

0 commit comments

Comments
 (0)