mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-05 22:03:16 -04:00
Change service subdomain url from app to api
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()),
|
||||
|
||||
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user