Spaces:
Runtime error
Runtime error
Download frontend/next.config.ts from IDKHowToCodeFr/tinyml-backend: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/IDKHowToCodeFr/tinyml-backend/resolve/main/frontend/next.config.ts
- Command line
-
hf download hf://spaces/IDKHowToCodeFr/tinyml-backend/frontend/next.config.ts
-
curl -L -o next.config.ts https://huggingface.co/spaces/IDKHowToCodeFr/tinyml-backend/resolve/main/frontend/next.config.ts
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; | |