Spaces:
Sleeping
Sleeping
Download apps/web/next.config.mjs from 2026worldcup/predictor: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/spaces/2026worldcup/predictor/resolve/main/apps/web/next.config.mjs
- Command line
-
hf download hf://spaces/2026worldcup/predictor/apps/web/next.config.mjs
-
curl -L -o next.config.mjs https://huggingface.co/spaces/2026worldcup/predictor/resolve/main/apps/web/next.config.mjs
523 Bytes
| /** @type {import('next').NextConfig} */ | |
| const API_BACKEND = | |
| process.env.API_BACKEND || | |
| (process.env.API_BACKEND_HOSTPORT | |
| ? `http://${process.env.API_BACKEND_HOSTPORT}` | |
| : "http://127.0.0.1:8000"); | |
| const nextConfig = { | |
| reactStrictMode: true, | |
| async rewrites() { | |
| // proxy /api/* to the FastAPI backend so the whole app is single-origin | |
| // (one public URL serves both frontend and API) | |
| return [{ source: "/api/:path*", destination: `${API_BACKEND}/api/:path*` }]; | |
| }, | |
| }; | |
| export default nextConfig; | |