feat: configure basePath from env and update font strategy

This commit is contained in:
2026-05-16 10:02:11 +07:00
parent 1a13083fc5
commit e652279b41
7 changed files with 74 additions and 21 deletions
+1 -8
View File
@@ -1,7 +1,5 @@
"use client";
import { useEffect, useState } from "react";
// Tên file chính xác trong public/assets/img/carousel/
const ROW_1 = [
{ name: "NVIDIA", file: "Nvidia_logo.svg.png" },
@@ -76,12 +74,7 @@ function CarouselRow({
}
export default function PartnersCarousel() {
const [base, setBase] = useState("");
useEffect(() => {
const match = window.location.pathname.match(/^(\/ipv6)/);
setBase(match ? match[1] : "");
}, []);
const base = process.env.NEXT_PUBLIC_BASE_PATH || "";
return (
<section className="w-full py-16 lg:py-24 overflow-hidden border-t border-white/5">