tinyml-backend / frontend /next.config.ts
IDKHowToCodeFr's picture
Upload folder using huggingface_hub
604d53b verified
Raw History Blame Contribute Delete
550 Bytes
import type { NextConfig } from "next";
const isGhPages = process.env.GITHUB_PAGES === "true" || process.env.NEXT_PUBLIC_DEPLOY_TARGET === "gh-pages";
const isStandalone = process.env.OUTPUT_STANDALONE === "true";
const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? (isGhPages ? "/HEARTFLOW_OS" : "");
const nextConfig: NextConfig = {
...(isGhPages ? { output: "export" as const } : isStandalone ? { output: "standalone" as const } : {}),
basePath: basePath || undefined,
images: {
unoptimized: true,
}
};
export default nextConfig;