/** @type {import('next').NextConfig} */ const isHuggingFaceSpace = process.env.HUGGINGFACE_SPACE === "1"; const nextConfig = { output: "export", trailingSlash: true, ...(isHuggingFaceSpace ? {} : { basePath: "/UI" }), images: { unoptimized: true }, }; export default nextConfig;