Skip to main content

DRIVE_API_URL

Constant DRIVE_API_URL 

Source
pub const DRIVE_API_URL: &str = "DRIVE_API_URL";
Expand description

Environment variable overriding the real Drive API host.

Process-env only — never written to settings.json by auth login, unlike the four keys above (crate::drive::client::DriveClient’s default base URL). Useful for:

  • Tests that point at a wiremock server (e.g. http://127.0.0.1:PORT).
  • Environments where outbound traffic must go through a forced proxy.

Mirrors GMAIL_API_URL (crate::gmail::auth); Drive has no per-tenant site/region the override is deriving from — it’s a flat replacement of the one real host, not a site substitution.