perf: tour nạp panorama WebP thay cho JPEG

This commit is contained in:
tuyenio
2026-06-25 09:09:05 +07:00
parent 7ac7d86570
commit dc14bc5197
+1 -1
View File
@@ -9,7 +9,7 @@ import type { TourConfig, TourScene, InfoMarker, Hotspot } from "@/app/component
const base = "/images/chua-thai-lac";
// Trỏ tới đúng file ảnh gốc theo SỐ FILE (01..26), độc lập với thứ tự cảnh sau khi
// đánh số lại — nhờ vậy có thể bỏ cảnh giữa chừng mà không phải đổi tên ảnh.
const imageForFile = (fileNumber: number) => `${base}/${String(fileNumber).padStart(2, "0")}.jpg`;
const imageForFile = (fileNumber: number) => `${base}/${String(fileNumber).padStart(2, "0")}.webp`;
type SceneSeed = {
title: string;