feat: add environment configuration files and update API base URL handling for production
This commit is contained in:
@@ -26,7 +26,7 @@ import {
|
||||
ArrowRight,
|
||||
ArrowRightToLine
|
||||
} from 'lucide-react'
|
||||
import { playerService, type PlayerState, type PlayerMode } from '@/lib/api/services/player'
|
||||
import { playerService, type PlayerState, type PlayerMode, type MessageResponse } from '@/lib/api/services/player'
|
||||
import { filesService } from '@/lib/api/services/files'
|
||||
import { playerEvents, PLAYER_EVENTS } from '@/lib/events'
|
||||
import { toast } from 'sonner'
|
||||
@@ -79,7 +79,7 @@ export function Player({ className }: PlayerProps) {
|
||||
}
|
||||
}, [])
|
||||
|
||||
const executeAction = useCallback(async (action: () => Promise<void>, actionName: string) => {
|
||||
const executeAction = useCallback(async (action: () => Promise<void | MessageResponse>, actionName: string) => {
|
||||
setIsLoading(true)
|
||||
try {
|
||||
await action()
|
||||
|
||||
Reference in New Issue
Block a user