config.js javascript
18 lines 1.3 KB
Raw
sha256:87f84653ce4706be8c65b0c4494ed6fb891213cca82db2b1824772cddc41a752 feat(auth): durable MCP OAuth refresh via shared strong sto… Agent minor 57 days ago
1 // For hosted deploy: production hostnames below get the Netlify gateway. Localhost is unchanged so
2 // `npm run hub` keeps same-origin API (Node-only routes like delete-by-project work).
3 // If your static host reverse-proxies /api/* to that gateway, set:
4 // window.HUB_API_BASE_URL = '';
5 // (empty string → hub.js uses location.origin)
6 //
7 // Optional: persistent Node gateway URL for Streamable HTTP MCP (/mcp). Netlify serverless does not host
8 // stateful /mcp — set this so Copy Hub URL includes KNOWTATION_MCP_URL. Same-origin self-hosted: use
9 // window.HUB_MCP_PUBLIC_URL = location.origin + '/mcp'
10 if (typeof window !== 'undefined' && (window.location.hostname === 'knowtation.store' || window.location.hostname === 'www.knowtation.store')) {
11 // First-party API: api.knowtation.store is a subdomain of knowtation.store, so the gateway's
12 // HttpOnly refresh cookie is same-site (not a blocked third-party cookie) and persistent login
13 // works in every browser. The bare knowtation-gateway.netlify.app host was a different
14 // registrable domain (eTLD+1 netlify.app) and would have had its session cookie dropped by
15 // Safari/Chrome. See hub/gateway/refresh-token-store.mjs and hub/auth-session.mjs.
16 window.HUB_API_BASE_URL = 'https://api.knowtation.store';
17 window.HUB_MCP_PUBLIC_URL = 'https://mcp.knowtation.store/mcp';
18 }
File History 5 commits
sha256:87f84653ce4706be8c65b0c4494ed6fb891213cca82db2b1824772cddc41a752 feat(auth): durable MCP OAuth refresh via shared strong sto… Agent minor 57 days ago
sha256:873e30b7fafe601346295f8f4289f388f21d8f715f28584d5481899ba2b714fc Merge pull request #249 from aaronrene/muse-mirror Agent 74 days ago
sha256:d8c648b20a4d53b2673c5c082ee7edfa7b2fc9b11080832da1f38807b6bf940b fix(7C-L1b): route hosted delegation proposals through cani… Human minor 77 days ago
sha256:2827ba9e7632a4b141c50caf1e8f7d77abbc3515be20e7465f2bccb0ac4edf91 fix: repair endpoint now sets has_active_subscription when … Human minor 97 days ago