feat: update docker-compose to add static file service and configure Nginx with Traefik routing
feat: enhance Next.js configuration with rewrites for public directory fix: adjust audio file path in AudioPlayer component to include public directory
This commit is contained in:
@@ -17,7 +17,7 @@ export default function AudioPlayer({ fileName, datasetId, externalId }: AudioPl
|
||||
|
||||
// Extract file extension from original fileName and construct URL using externalId
|
||||
const fileExtension = fileName.substring(fileName.lastIndexOf('.'));
|
||||
const audioPath = `/datasets/${datasetId}/${externalId}${fileExtension}`;
|
||||
const audioPath = `/public/datasets/${datasetId}/${externalId}${fileExtension}`;
|
||||
|
||||
// Stop playing if another audio started
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user