Add docker-compose config and normalize file path separators

Introduces a docker-compose.yml for containerized deployment of the application, including volume mappings and environment variable documentation. Updates files-hash utility to normalize path separators to forward slashes, ensuring cross-platform consistency when extracting basenames.
This commit is contained in:
kikootwo
2026-01-28 11:49:02 -05:00
parent a97979358f
commit 07dfce3936
2 changed files with 85 additions and 1 deletions
+5 -1
View File
@@ -44,7 +44,11 @@ export function generateFilesHash(filePaths: string[]): string {
// Extract basenames and filter to audio files only
const audioBasenames = filePaths
.map((filePath) => path.basename(filePath))
.map((filePath) => {
// Normalize path separators to forward slashes for cross-platform consistency
const normalizedPath = filePath.replace(/\\/g, '/');
return path.posix.basename(normalizedPath);
})
.filter((basename) => {
const ext = path.extname(basename).toLowerCase();
return AUDIO_EXTENSIONS.includes(ext);