Spaces:
Runtime error
Runtime error
Download next.config.mjs from Learn8/README: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/spaces/Learn8/README/resolve/main/next.config.mjs
- Command line
-
hf download hf://spaces/Learn8/README/next.config.mjs
-
curl -L -o next.config.mjs https://huggingface.co/spaces/Learn8/README/resolve/main/next.config.mjs
290 Bytes
| /** @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; | |