From 40dd1d2cd73c2da84a7033b2ff58e256546cd21b Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Mon, 1 Jun 2026 11:48:26 -0700 Subject: [PATCH] Switch default API host to api.hexclave.com --- .../lib/stack-app/apps/implementations/common.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/packages/template/src/lib/stack-app/apps/implementations/common.ts b/packages/template/src/lib/stack-app/apps/implementations/common.ts index ed59fa27b..5c2eefa16 100644 --- a/packages/template/src/lib/stack-app/apps/implementations/common.ts +++ b/packages/template/src/lib/stack-app/apps/implementations/common.ts @@ -123,20 +123,13 @@ export function getBaseUrl(userSpecifiedBaseUrl: string | { browser: string, ser return replaceStackPortPrefix(url.endsWith('/') ? url.slice(0, -1) : url); } -// Hexclave rebrand: the last published `@stackframe/*` package version stays -// pointed at `api.stack-auth.com` so that customers who upgrade their legacy -// SDK without explicitly migrating to `@hexclave/*` keep receiving JWTs with -// the stack-auth issuer and continue using their existing OAuth callback URL -// registrations. The `@hexclave/*` mirror packages are republished from this -// same source with these literals rewritten by -// `scripts/rewrite-packages-to-hexclave.ts` (wiring lands in a follow-up PR), -// so the new-brand SDK defaults to `api.hexclave.com` end-to-end. -export const defaultBaseUrl = "https://api.stack-auth.com"; -export const defaultAnalyticsBaseUrl = "https://r.stack-auth.com"; + +export const defaultBaseUrl = "https://api.hexclave.com"; +export const defaultAnalyticsBaseUrl = "https://r.hexclave.com"; const analyticsBaseUrlsByApiBaseUrl = new Map([ [defaultBaseUrl, defaultAnalyticsBaseUrl], - ["https://api.hexclave.com", "https://r.hexclave.com"], // hexclave-branded host (forward compat) + ["https://api.stack-auth.com", "https://r.stack-auth.com"], ]); export function getAnalyticsBaseUrl(regularBaseUrl: string): string {