feat: update default content source for new users

- Changed the default content source from 'indeehub-api' to 'topdocfilms' for new users and first visits.
- Updated comments to reflect the new default behavior, enhancing clarity for future developers.

This change aims to improve the onboarding experience for new users by providing a more relevant default content source.
This commit is contained in:
Dorian
2026-02-14 11:25:44 +00:00
parent 40485e9622
commit 93e2f666aa

View File

@@ -9,9 +9,9 @@ export const useContentSourceStore = defineStore('contentSource', () => {
const saved = localStorage.getItem(STORAGE_KEY) as ContentSourceId | null
const validSources: ContentSourceId[] = ['indeehub', 'topdocfilms', 'indeehub-api']
// Default to 'indeehub-api' when the self-hosted backend URL is configured
// Default to TopDoc Films for new users / first visits
const apiUrl = import.meta.env.VITE_INDEEHUB_API_URL || ''
const defaultSource: ContentSourceId = apiUrl ? 'indeehub-api' : 'indeehub'
const defaultSource: ContentSourceId = 'topdocfilms'
const activeSource = ref<ContentSourceId>(
saved && validSources.includes(saved) ? saved : defaultSource