mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 18:01:09 +02:00
feat(mana-web): inject PUBLIC_MANA_ANALYTICS_URL for client-side feedback calls
mana-web SSR + browser need the analytics URL so the inline FeedbackHook + /community page can talk to the new public-feedback endpoints. SSR uses the internal docker hostname; browser uses the public subdomain. Note: analytics.mana.how DNS + Caddy reverse-proxy block must be provisioned separately on the Mac Mini before browser-side calls work — TODO in deploy-followup. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1334bd3626
commit
3673542f82
2 changed files with 9 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ const PUBLIC_MANA_AI_URL_CLIENT =
|
|||
process.env.PUBLIC_MANA_AI_URL_CLIENT || process.env.PUBLIC_MANA_AI_URL || '';
|
||||
const PUBLIC_MANA_RESEARCH_URL_CLIENT =
|
||||
process.env.PUBLIC_MANA_RESEARCH_URL_CLIENT || process.env.PUBLIC_MANA_RESEARCH_URL || '';
|
||||
const PUBLIC_MANA_ANALYTICS_URL_CLIENT =
|
||||
process.env.PUBLIC_MANA_ANALYTICS_URL_CLIENT || process.env.PUBLIC_MANA_ANALYTICS_URL || '';
|
||||
// Feature flag for the Mission Key-Grant UI (server-side execution of
|
||||
// encrypted missions). Default off — flip to 'true' per deployment once
|
||||
// the MANA_AI_PUBLIC/PRIVATE_KEY_PEM pair is provisioned on both services.
|
||||
|
|
@ -235,6 +237,7 @@ window.__PUBLIC_MANA_API_URL__ = ${JSON.stringify(PUBLIC_MANA_API_URL_CLIENT)};
|
|||
window.__PUBLIC_MANA_CREDITS_URL__ = ${JSON.stringify(PUBLIC_MANA_CREDITS_URL_CLIENT)};
|
||||
window.__PUBLIC_MANA_AI_URL__ = ${JSON.stringify(PUBLIC_MANA_AI_URL_CLIENT)};
|
||||
window.__PUBLIC_MANA_RESEARCH_URL__ = ${JSON.stringify(PUBLIC_MANA_RESEARCH_URL_CLIENT)};
|
||||
window.__PUBLIC_MANA_ANALYTICS_URL__ = ${JSON.stringify(PUBLIC_MANA_ANALYTICS_URL_CLIENT)};
|
||||
window.__PUBLIC_AI_MISSION_GRANTS__ = ${JSON.stringify(PUBLIC_AI_MISSION_GRANTS)};
|
||||
window.__PUBLIC_GLITCHTIP_DSN__ = ${JSON.stringify(PUBLIC_GLITCHTIP_DSN)};
|
||||
</script>`;
|
||||
|
|
@ -267,6 +270,7 @@ window.__PUBLIC_GLITCHTIP_DSN__ = ${JSON.stringify(PUBLIC_GLITCHTIP_DSN)};
|
|||
PUBLIC_MANA_EVENTS_URL_CLIENT,
|
||||
PUBLIC_MANA_API_URL_CLIENT,
|
||||
PUBLIC_MANA_CREDITS_URL_CLIENT,
|
||||
PUBLIC_MANA_ANALYTICS_URL_CLIENT,
|
||||
'wss://sync.mana.how',
|
||||
// transformers.js *also* fetch()es the .wasm binary and the .mjs
|
||||
// loader factory directly to pre-warm the runtime — those go
|
||||
|
|
|
|||
|
|
@ -946,6 +946,11 @@ services:
|
|||
# and research fetches fall back to the current origin (404).
|
||||
PUBLIC_MANA_RESEARCH_URL: http://mana-research:3068
|
||||
PUBLIC_MANA_RESEARCH_URL_CLIENT: https://research.mana.how
|
||||
# mana-analytics — public-community feedback hub. Browser hits the
|
||||
# /api/v1/(public/)feedback/* endpoints directly; SSR uses the
|
||||
# internal docker-network URL.
|
||||
PUBLIC_MANA_ANALYTICS_URL: http://mana-analytics:3064
|
||||
PUBLIC_MANA_ANALYTICS_URL_CLIENT: https://analytics.mana.how
|
||||
# mana-ai background Mission Runner. Browser calls the audit
|
||||
# endpoint (/api/v1/me/ai-audit) to render the Workbench
|
||||
# "Datenzugriff" tab. SSR doesn't hit this service directly.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue