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:
averel10
2026-03-13 09:40:56 +01:00
parent a1ea5e95e5
commit 1debc1b36e
3 changed files with 42 additions and 2 deletions

View File

@@ -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(() => {