1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2024-11-21 18:16:33 +02:00

Switch thumbnail source

This commit is contained in:
Bart Huijgen 2024-11-18 12:05:47 +01:00 committed by Bart
parent a634b5f70f
commit aa75bc45bd

View File

@ -118,11 +118,12 @@ export const BlueprintTile: React.FC<BlueprintTileProps> = ({
<Box className="block">
<div className="image">
{imageError ? (
<div>The image is not generated yet, please be patient it will come soon.</div>
<div>The image is not generated yet.</div>
) : (
<Image
loader={({ src }) => src}
src={`https://storage.googleapis.com/blueprint-images/300/${blueprint.image_hash}.webp`}
// src={`https://storage.googleapis.com/blueprint-images/300/${blueprint.image_hash}.webp`}
src={`https://storage.factorio.tools/factorio-blueprint-images/thumbnail/${blueprint.image_hash}.webp`}
layout="fill"
objectFit="contain"
alt={blueprint.title}