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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user