fix(docs): wrong location for images
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m39s

This commit is contained in:
2026-05-23 11:41:43 -05:00
parent 52974aa0b4
commit 057a570e43
2 changed files with 14 additions and 11 deletions

View File

@@ -3,17 +3,20 @@
import { Separator } from "../../components/ui/separator";
// image imports
const images = import.meta.glob("/src/imgs/docs/mobile/*.{png,jpg,jpeg,webp}", {
eager: true,
query: "w=300;600;1200&format=webp",
import: "default",
}) as Record<string, string>;
const images = import.meta.glob(
"/public/imgs/docs/mobile/*.{png,jpg,jpeg,webp}",
{
eager: true,
query: "w=300;600;1200&format=webp",
import: "default",
},
) as Record<string, string>;
const server = window.LST_CONFIG?.server;
const firstScan = images[`/src/imgs/docs/mobile/${server}-1.png`];
const secondScan = images[`/src/imgs/docs/mobile/${server}-2.png`];
const thridScan = images[`/src/imgs/docs/mobile/${server}-3.png`];
const firstScan = images[`/public/imgs/docs/mobile/${server}-1.png`];
const secondScan = images[`/public/imgs/docs/mobile/${server}-2.png`];
const thirdScan = images[`/public/imgs/docs/mobile/${server}-3.png`];
export default function UpdateInstructions() {
// const getFile = useMutation({
@@ -128,9 +131,9 @@ export default function UpdateInstructions() {
<p>Scan Commands</p>
<Separator className="m-3" />
<div className="flex flex-col justify-center">
<img src={firstScan} alt="Home" className="m-3" />
<img src={secondScan} alt="Home" className="m-3" />
<img src={thridScan} alt="Home" className="m-3" />
<img src={firstScan} alt="First Scan" className="m-3" />
<img src={secondScan} alt="Second Scan" className="m-3" />
<img src={thirdScan} alt="Third Scan" className="m-3" />
</div>
</div>
</div>