config.js 618 B

1234567891011121314151617
  1. // Ensure unified YAML config is applied before reading flags.
  2. import '../load-env.js';
  3. /**
  4. * Environment Flag: Is Platform
  5. * Indicates if the app is running in Platform mode (hosted) or OSS mode (self-hosted)
  6. */
  7. export const IS_PLATFORM = process.env.VITE_IS_PLATFORM === 'true';
  8. /**
  9. * When true, skip JWT login/register in the web UI (single-user local mode).
  10. * Set PILOTDECK_DISABLE_LOCAL_AUTH=0 or false to require username/password again.
  11. * @type {boolean}
  12. */
  13. export const DISABLE_LOCAL_AUTH =
  14. process.env.PILOTDECK_DISABLE_LOCAL_AUTH !== '0' &&
  15. process.env.PILOTDECK_DISABLE_LOCAL_AUTH !== 'false';