API: Serve static assets via express

This commit is contained in:
2023-06-08 12:15:54 +02:00
parent 46bc9ae711
commit 795d3b444e
3 changed files with 7 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ module.exports = {
**/
console.log(`Rendering card or character ${character.name} ${character.imageIdentifier}`);
let characterImage = `http://vps5.minzkraut.com:6789/cards/${character.imageIdentifier}`;
let characterImage = `${process.env.ASSET_URL}/cards/${character.imageIdentifier}`;
console.log("Character iomage ", characterImage);
let job = {
"type": "card",