diff --git a/docker-compose.yml b/docker-compose.yml index a5ca0bd..a114c15 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: context: . dockerfile: Dockerfile args: - CACHEBUST: "15" + CACHEBUST: "16" VITE_USE_MOCK_DATA: "false" VITE_CONTENT_ORIGIN: ${FRONTEND_URL} VITE_INDEEHUB_API_URL: /api diff --git a/src/services/filmmaker.service.ts b/src/services/filmmaker.service.ts index f516676..448e209 100644 --- a/src/services/filmmaker.service.ts +++ b/src/services/filmmaker.service.ts @@ -10,6 +10,7 @@ import { apiService } from './api.service' import { indeehubApiService } from './indeehub-api.service' import { useContentSourceStore } from '../stores/contentSource' +import { USE_MOCK } from '../utils/mock' import type { ApiProject, ApiContent, @@ -26,9 +27,16 @@ import type { } from '../types/api' /** - * Check if we should route requests to our self-hosted backend + * Check if we should route requests to our self-hosted backend. + * + * In production (USE_MOCK = false) the self-hosted API is always + * available, so filmmaker operations always use it regardless of + * which content catalog is active on the browse page. + * In dev/mock mode, only route to self-hosted when the content + * source explicitly selects 'indeehub-api'. */ function usesSelfHosted(): boolean { + if (!USE_MOCK) return true const store = useContentSourceStore() return store.activeSource === 'indeehub-api' }