Make cover art non-fatal and disable critical CSS inlining

This commit is contained in:
Tor Wingalen
2026-05-14 18:37:15 +02:00
parent 64160fe21a
commit a1772c7670
2 changed files with 21 additions and 7 deletions
+6
View File
@@ -199,12 +199,18 @@ export class TrackService {
const folderName = this.getFolderName(track, track.playlist);
await this.youtubeService.downloadAndFormat(track, folderName);
if (coverUrl) {
try {
await this.youtubeService.addImage(
folderName,
coverUrl,
track.name,
track.artist,
);
} catch (imageError) {
this.logger.warn(
`Cover art embed failed for track ${track.id}: ${toSafeErrorMessage(imageError)}`,
);
}
}
} catch (err) {
this.logger.error(err);
+9 -1
View File
@@ -50,7 +50,15 @@
"maximumError": "4kB"
}
],
"outputHashing": "all"
"outputHashing": "all",
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": true
}
},
"development": {
"optimization": false,