@@ -23,21 +23,25 @@ const REPO = 'https://github.com/nexu-io/open-design';
2323const REPO_DISCUSSIONS = `${ REPO } /discussions` ;
2424const DISCORD = 'https://discord.gg/mHAjSMV6gz' ;
2525const X_PROFILE = 'https://x.com/OpenDesignHQ' ;
26- // AMR product page on the production site (this repo has no /amr/ route) .
26+ // Open Design Cloud product surface on the production site.
2727// Single destination for the Agent dropdown entry and cloud account surfaces.
28- const AMR_URL = 'https://open-design.ai/amr /' ;
28+ const CLOUD_URL = 'https://open-design.ai/cloud /' ;
2929
30- // Open Design Cloud (AMR / vela) endpoints for the header sign-in module.
30+ // Open Design Cloud endpoints for the header sign-in module.
3131// Production defaults; overridable at build time via PUBLIC_* env so a
3232// preview/staging build can point at a non-prod cloud. These are surfaced to
3333// the runtime via `data-*` on `.nav-account` because the auth logic lives in
3434// `header-enhancer.astro`'s `<script is:inline>` (NOT processed by Vite, so it
3535// cannot read `import.meta.env` itself).
3636const env = import . meta. env as Record < string , string | undefined > ;
37- const AMR_API_BASE = env . PUBLIC_AMR_API_BASE ?? 'https://amr-api.open-design.ai' ;
38- const AMR_LOGIN_URL = env . PUBLIC_AMR_LOGIN_URL ?? 'https://open-design.ai/amr/login' ;
39- const AMR_CONSOLE_URL =
40- env . PUBLIC_AMR_CONSOLE_URL ?? 'https://open-design.ai/amr?source=open_design' ;
37+ const CLOUD_API_BASE =
38+ env . PUBLIC_CLOUD_API_BASE ?? env . PUBLIC_AMR_API_BASE ?? 'https://amr-api.open-design.ai' ;
39+ const CLOUD_LOGIN_URL =
40+ env . PUBLIC_CLOUD_LOGIN_URL ?? env . PUBLIC_AMR_LOGIN_URL ?? 'https://open-design.ai/cloud/login' ;
41+ const CLOUD_CONSOLE_URL =
42+ env . PUBLIC_CLOUD_CONSOLE_URL ??
43+ env . PUBLIC_AMR_CONSOLE_URL ??
44+ 'https://open-design.ai/cloud/wallet?source=open_design' ;
4145
4246// Solution → Use cases / Roles. Hrefs mirror upstream main's header 1:1 and
4347// pair positionally with the localized `useCaseItems` / `roleItems` tuples.
@@ -328,7 +332,7 @@ export function Header({
328332 aria-label = { productMenuCopy . agent }
329333 >
330334 < li >
331- < a href = { AMR_URL } >
335+ < a href = { CLOUD_URL } >
332336 < span className = 'dropdown-name' > { productMenuCopy . amrName } </ span >
333337 < span className = 'dropdown-blurb' > { productMenuCopy . amrBlurb } </ span >
334338 </ a >
@@ -572,7 +576,7 @@ export function Header({
572576 { headerCopy . download }
573577 </ a >
574578 { /*
575- Open Design Cloud (AMR) account entry. Renders BOTH states up front
579+ Open Design Cloud account entry. Renders BOTH states up front
576580 and lets `header-enhancer.astro` toggle them at runtime: the
577581 signed-out "Sign in" link is visible by default (so no-JS / pre-hydration
578582 shows a working login link), and the signed-in avatar menu stays
@@ -583,12 +587,12 @@ export function Header({
583587 < div
584588 className = 'nav-account'
585589 data-amr-account
586- data-amr-api = { AMR_API_BASE }
587- data-amr-login = { AMR_LOGIN_URL }
588- data-amr-console = { AMR_CONSOLE_URL }
590+ data-amr-api = { CLOUD_API_BASE }
591+ data-amr-login = { CLOUD_LOGIN_URL }
592+ data-amr-console = { CLOUD_CONSOLE_URL }
589593 data-amr-home = { href ( '/' ) }
590594 >
591- < a className = 'nav-signin' href = { AMR_LOGIN_URL } data-amr-signin >
595+ < a className = 'nav-signin' href = { CLOUD_LOGIN_URL } data-amr-signin >
592596 { headerCopy . signIn }
593597 </ a >
594598 < details className = 'nav-account-menu' data-amr-menu hidden >
@@ -612,7 +616,7 @@ export function Header({
612616 < a
613617 className = 'nav-account-item'
614618 role = 'menuitem'
615- href = { AMR_CONSOLE_URL }
619+ href = { CLOUD_CONSOLE_URL }
616620 target = '_blank'
617621 rel = 'noreferrer noopener'
618622 data-amr-console-link
0 commit comments