Slefhostet und postgres

This commit is contained in:
2026-04-02 11:39:57 +02:00
parent b1c99893a6
commit 08483c7075
215 changed files with 4584 additions and 5190 deletions

View File

@@ -1,6 +1,6 @@
import { IdentificationResult, Language } from '../types';
import { resolveImageUri, tryResolveImageUri } from '../utils/imageUri';
import { getConfiguredApiBaseUrl } from '../utils/backendUrl';
import { getConfiguredApiBaseUrl, getConfiguredBackendRootUrl } from '../utils/backendUrl';
import { backendApiClient } from './backend/backendApiClient';
import { BackendDatabaseEntry, isBackendApiError } from './backend/contracts';
import { createIdempotencyKey } from '../utils/idempotency';
@@ -26,14 +26,7 @@ export interface SemanticSearchResult {
const DEFAULT_SEARCH_LIMIT = 500;
const hasConfiguredPlantBackend = (): boolean => Boolean(
String(
process.env.EXPO_PUBLIC_API_URL
|| process.env.EXPO_PUBLIC_BACKEND_URL
|| process.env.EXPO_PUBLIC_PAYMENT_SERVER_URL
|| '',
).trim(),
);
const hasConfiguredPlantBackend = (): boolean => Boolean(getConfiguredBackendRootUrl());
const normalizeImageStatus = (status?: string, imageUri?: string): 'ok' | 'missing' | 'invalid' => {
if (status === 'ok' || status === 'missing' || status === 'invalid') return status;