Spaces:
Runtime error
Runtime error
File size: 550 Bytes
4cea933 604d53b 4cea933 604d53b 4cea933 604d53b 4cea933 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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;
|