Change service subdomain url from app to api

This commit is contained in:
Arnab Chakraborty
2024-07-23 13:41:30 +03:00
parent 1dfe85292f
commit 0db7b02d3b
6 changed files with 8 additions and 8 deletions

View File

@@ -43,9 +43,9 @@ const DebugScreen = ({ navigation }: SettingsStackScreenProps<'Debug'>) => {
<Button
onPress={() => {
const url =
origin.data === 'https://app.spacedrive.com'
origin.data === 'https://api.spacedrive.com'
? 'http://localhost:3000'
: 'https://app.spacedrive.com';
: 'https://api.spacedrive.com';
setOrigin.mutateAsync(url).then(async () => {
await auth.logout();
await queryClient.invalidateQueries();

View File

@@ -45,7 +45,7 @@ impl Config {
pub fn api_url(&self) -> Cow<'_, str> {
match self.api_url {
Some(ref url) => Cow::Borrowed(url),
None => Cow::Borrowed("https://app.spacedrive.com"),
None => Cow::Borrowed("https://api.spacedrive.com"),
}
}

View File

@@ -150,7 +150,7 @@ async fn main() {
sd_core::Env {
api_url: tokio::sync::Mutex::new(
std::env::var("SD_API_URL")
.unwrap_or_else(|_| "https://app.spacedrive.com".to_string()),
.unwrap_or_else(|_| "https://api.spacedrive.com".to_string()),
),
client_id: std::env::var("SD_CLIENT_ID")
.unwrap_or_else(|_| "04701823-a498-406e-aef9-22081c1dae34".to_string()),

View File

@@ -8,7 +8,7 @@ pub struct Env {
impl Env {
pub fn new(client_id: &str) -> Self {
Self {
api_url: Mutex::new("https://app.spacedrive.com".to_string()),
api_url: Mutex::new("https://api.spacedrive.com".to_string()),
client_id: client_id.to_string(),
}
}

View File

@@ -281,8 +281,8 @@ function CloudOriginSelect() {
}
value={origin.data}
>
<SelectOption value="https://app.spacedrive.com">
https://app.spacedrive.com
<SelectOption value="https://api.spacedrive.com">
https://api.spacedrive.com
</SelectOption>
<SelectOption value="http://localhost:3000">http://localhost:3000</SelectOption>
</Select>

View File

@@ -9,7 +9,7 @@ import { PlausiblePlatformType, telemetryState, useTelemetryState } from '../sto
* This should be in sync with the Core's version.
*/
const DOMAIN = 'app.spacedrive.com';
const DOMAIN = 'api.spacedrive.com';
const MOBILE_DOMAIN = 'mobile.spacedrive.com';
const PlausibleProvider = Plausible({