sightbox/website/assets/js/config.js

20 lines
766 B
JavaScript

/**
* Website runtime configuration.
*
* The contact form and self-assess calculator both call THIS site's own
* backend (nginx proxies /api/* to it — see ../../nginx.conf), always via
* a plain relative path, so no base URL is needed for those. The only
* cross-deployment URL this site actually needs is where to send a
* visitor who clicks "Sign in," since login lives on the separate app
* deployment, not here.
*
* Data flow:
* loaded before the page's own inline <script> → window.BI_CONFIG read
* by the nav's "Sign in" link (index.html)
*/
window.BI_CONFIG = {
// Update to the real app origin (e.g. https://app.bettersight.io)
// when this site is deployed separately from the app.
APP_BASE_URL: 'http://localhost:8080',
};