fix assets paths and remove cache busters

This commit is contained in:
Tom (plebeius.eth)
2024-05-29 15:53:41 +02:00
parent 18824468d4
commit 7dca5bd01d
4 changed files with 6 additions and 8 deletions
+1 -2
View File
@@ -10,8 +10,7 @@ const totalNotFoundImages = 2;
const NotFoundImage = () => {
const [imagePath] = useState(() => {
const randomBannerIndex = Math.floor(Math.random() * totalNotFoundImages) + 1;
const cacheBuster = new Date().getTime();
return `assets/not-found/not-found-${randomBannerIndex}.jpg?cacheBuster=${cacheBuster}`;
return `/assets/not-found/not-found-${randomBannerIndex}.jpg`;
});
return <img src={imagePath} alt='' />;